javascript - redis in node.js zadd arguments -
i have line in node.js, wrong number of arguments. in redis-cli easy, etg test 10 2, reason wont work here.
example:
convensation:convensationids:user:23984 294874 1
my code:
redis_client.zadd(['convensation:convensationids:user:' + data.from ,convensationid ,data.to]);
error:
rr wrong number of arguments 'zadd' command
edit:
i tried
redis_client.zadd('convensation:convensationids:user:' + data.from ,convensationid ,data.to);
but got same error above.
you're passing 1 argument, namely array. try passing values of array proper arguments:
redis_client.zadd('convensation:convensationids:user:' + data.from ,convensationid ,data.to);
Comments
Post a Comment