如何在 nodejs Cache Intersystems 更改 "USER" 命名空间
How do I change "USER" namespace at nodejs Cache Intersystems
我正在尝试 运行 来自 cache.node 模块的示例:
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 命名空间?
Caché node.js 驱动程序在 open
中忽略命名空间的错误已在 Caché 2014.1 及更高版本中修复。
我正在尝试 运行 来自 cache.node 模块的示例:
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 命名空间?
Caché node.js 驱动程序在 open
中忽略命名空间的错误已在 Caché 2014.1 及更高版本中修复。