Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch command not working #49

Open
vivekkrbajpai opened this issue Mar 29, 2016 · 1 comment
Open

Batch command not working #49

vivekkrbajpai opened this issue Mar 29, 2016 · 1 comment

Comments

@vivekkrbajpai
Copy link

Hi,
Have you tested the batch command?
It throws a "batch is not a function". This is the sample peice of code i am using.

var redisClient = sentinel.createClient(endPoints, masterName, {role:'master'});
redisClient.batch([['hget', 'foo', 'bar'],['hset,'foo','bar',1]]).exec(function(err, res){
if(err){console.log(err)}})
@nnexai
Copy link

nnexai commented Jul 11, 2016

this is because node-redis-sentinel uses node_redis 0.12.x as a dependency. Thus new functions like batch or duplicate are not supported (because it will instantiate a 0.x12.x redisclient).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants