i am trying to get length of a list "Device_Live". For each of device (ex. 
'qwerty1' , 'qwerty2' , 'qwerty3' ..) saved in Device_Live list I want to 
add them as separate list and save coordinate for them and i am getting the 
error. "Error: Error: Redis connection gone from close event".

redisClient.llen("Device_Live", function (errorMessage, activeDevicCount) {
        for (var deviceCount = 0; deviceCount < activeDevicCount; 
deviceCount++) {
            redisClient.lindex("Device_Live", deviceCount, function 
(errorMessage, deviceName) {
                for (var deviceCoordinate = 0; deviceCoordinate < 
resultData.length; deviceCoordinate++) {
                    redisClient.lpush(deviceName, 
resultData[deviceCoordinate], redisInitialise.print);
                }
            });
        }
    });

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/fb6d4807-aba7-4116-b129-94891002f2a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to