1
我尝试从cache.node模块运行例如:如何更改 “USER” 命名的高速缓存的NodeJS InterSystems的
var globals = require('cache');
var data = new globals.Cache();
data.open(
{ path:"/usr/cache/mgr/",
username: '_SYSTEM',
password: 'SYS',
namespace: "IKSTEST"
},
function(error, result){
console.log("error ",error);
console.log("result ",result);
}
);
console.log(dirList);
var dirList = data.global_directory({}).toString()
data.close();
但是从 “USER” 命名空间返回的数据:
# nodejs cache.js
Testtest,Testtest2,Testtest3,Testtest4,Testtest5,Testtest6,zewd
error 0
result { ok: 1, global: '/usr/cache/mgr/', result: '1' }
有谁知道我可以如何从nodejs更改CACHE命名空间?
更新到cache2014.2'open'后可以正常工作,谢谢 –
@ antonov-iv。注意,2014.2没有这样的版本。这是现场测试,后来更名为2015.1。请使用发布的版本! – adaptun