我有个问题
lpush
命令。它不会解决,不会出错,也不会推到列表中。
下面是代码
redisClient.brpop('c_list_api_' + currentDate, 0, (err, reply) => {
if (!err) {
console.log('//got a record at', 'c_list_api_' + currentDate);
var rawLogElements = reply[1].split(";");
redisClient.lpush('c_list_processing_' + currentDate, reply[1], (err, reply) => {
// This never executes
console.log('c_list_processing_' + currentDate , reply);
console.log('c_list_processing_' + currentDate , err);
//neither i get err, nor a reply... execution gets stuck here
});
}
else {
console.log('err', err);
console.log('reply', reply);
}
})
lpush中的代码永远不会被执行。可能是什么问题。较早的
brpop
很好,意思是说
redisClient
已连接。没有内存问题,安静一点内存是免费的。
有什么想法吗?
谢谢。