想要使用redissql给出错误node.js
运行此示例时 https://github.com/JakSprats/node_Redisql/blob /master/examples/redisql_examples.js
给了我这个错误,
~/rahul$ node redissql.js
node.js:178
throw e; // process.nextTick error, or 'error' event on first tick
^
ReferenceError: len is not defined
at check_argc (/usr/local/lib/node/.npm/redisql/0.0.1/package/index.js:18:62)
at RedisClient.<anonymous> (/usr/local/lib/node/.npm/redisql/0.0.1/package/index.js:102:9)
at Object.<anonymous> (/home/reach121/rahul/redissql.js:4:8)
at Module._compile (module.js:404:26)
at Object..js (module.js:410:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at Array.<anonymous> (module.js:423:10)
at EventEmitter._tickCallback (node.js:170:26)
我不明白这个链接中的这一点 https: //github.com/JakSprats/node_Redisql 该测试在redisql的数据库15上调用“FLUSHDB”->您将丢失 DB 15 中的数据
,这与此有何关系以及我们将如何做?
while running this example https://github.com/JakSprats/node_Redisql/blob/master/examples/redisql_examples.js
gives me this error ,
~/rahul$ node redissql.js
node.js:178
throw e; // process.nextTick error, or 'error' event on first tick
^
ReferenceError: len is not defined
at check_argc (/usr/local/lib/node/.npm/redisql/0.0.1/package/index.js:18:62)
at RedisClient.<anonymous> (/usr/local/lib/node/.npm/redisql/0.0.1/package/index.js:102:9)
at Object.<anonymous> (/home/reach121/rahul/redissql.js:4:8)
at Module._compile (module.js:404:26)
at Object..js (module.js:410:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at Array.<anonymous> (module.js:423:10)
at EventEmitter._tickCallback (node.js:170:26)
I dont understand this point in this link https://github.com/JakSprats/node_Redisql
This test calls "FLUSHDB" on database 15 of redisql -> you will lose data in DB 15
what is to do with this and how we are going to do ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想说你应该使用 node_redis 模块与 Redis DB 进行通信,因为它看起来更活跃与 Redisql 不同,它拥有更大的用户群和更好的文档。
I would say that you should rather use node_redis module for communicating with Redis DB, because it looks like it's more actively maintained, it has bigger user base and better documentation unlike Redisql.