gpt4 book ai didi

node.js - 如何更改nodejs缓存系统间的 "USER"命名空间

转载 作者:太空宇宙 更新时间:2023-11-04 00:40:01 25 4
gpt4 key购买 nike

我尝试从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 及更高版本中修复。

关于node.js - 如何更改nodejs缓存系统间的 "USER"命名空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37247162/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com