This repository has been archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Manage UDFs
Mira Dytko edited this page Jan 20, 2022
·
3 revisions
Use the following Aerospike PHP client APIs to manage User-Defined Functions (UDFs) on the server:
register()
deregister()
listRegistered()
getRegistered()
$status = $db->register('/path/to/my_udf.lua', 'my_udf');
if ($status == Aerospike::OK) {
echo "UDF module at $path is registered as my_udf on the Aerospike DB.\n";
$status = $db->listRegistered($modules);
if ($status == Aerospike::OK) {
var_dump($modules);
}
} else {
echo "Error[{$db->errorno()}]: ".$db->error();
}
PHP Client