Initial Release
All functions (except cache_get) returns TRUE or FALSE if error occurs
cach_errno();
Returns: DB error code
cach_error();
Returns: DB error message
cach_set_dir('/InterSystems/Cache/mgr');
cach_connect("login","password");
cach_quit();
First argument may be array.
In this case this array contains full path to global node beginning with global name
Example:
array("^time", "subscript1", ..., "subscriptN")
cach_set('^time',1); // Set ^time=1
cach_set('^time','tree',1,1,'value'); // Set ^time("tree", 1, 1) = "value"
cach_get('^time',1); // Set ^time=1
Returns: Value of global node, NULL - if node undefined, FALSE - by error.
cach_order('^ccc','new2','res2'); // $Order(^ccc("new2", "res2"))
cach_query('^ccc','new2','res2'); // $Query(^ccc("new2", "res2"))
Returns: always array with full path to global node beginning with global name
cach_order_rev('^ccc','new2','res2'); // $Order(^ccc("new2", "res2"), -1)
cach_zkill('^forKill','global'); // ZKill ^forKill("global")
cach_kill('^forKill','global'); // Kill ^forKill("global")
cach_exec("kill ^global(6)");