$keys[] = $db->initKey("test", "demo", "key" . $i); } $status = $db->existsMany($keys, $meta); var_dump($meta); if ($status != Aerospike::OK) { echo "\nexistsMany operation failed!"; } $db->close(); } else { echo "Aerospike DB connection is not established"; } }); $app->get('/scan', function () use($db) { if ($db->isConnected()) { $status = $db->scan("test", "demo", function ($record) { var_dump($record); return true; }, array(Aerospike::OPT_SCAN_CONCURRENTLY => true)); var_dump($db->error()); if ($status != Aerospike::OK) { echo "Scan Failed"; } $db->close(); } else { echo "Aerospike DB connection is not established"; } }); $app->get('/scanApply', function () use($db, $LUA_DIR) { if ($db->isConnected()) { $status = $db->register($LUA_DIR . "/test_record_udf.lua", "test_record_udf.lua"); if ($status != Aerospike::OK) { echo "UDF register failed\n";