I was trying to manage a list in redis with nodejs. I am able to store list with following code :
client.rpush(['room_'+room, data.customClient], function(err, reply) {
client.lrange('room_'+room, 0, -1, function(err, reply) {
console.log(reply);
});
});
The console output is
[ 'POanqn9llyTcuIurUPAN', 'm9vd57wecp6JvtHOrRSJ' ]
Now I want to delete one key POanqn9llyTcuIurUPAN from this list. How can I do this ?
LREMcommand: redis.io/commands/lremclient.lrem('room_'+room,reply,1);where you log the reply from lrange