Redis Node LPUSH命令无法解析

时间:2018-09-30 16:53:47

标签: node.js redis node-redis

我对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已连接。没有内存问题,安静一点的内存是免费的。

有什么想法吗?

谢谢。

0 个答案:

没有答案
相关问题