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

cant get pipelines to work #45

Open
SupertigerDev opened this issue Jan 20, 2019 · 2 comments
Open

cant get pipelines to work #45

SupertigerDev opened this issue Jan 20, 2019 · 2 comments

Comments

@SupertigerDev
Copy link

I can't seem to get pipeline work. I'm new to Redis. am I just being a noob or does it not work?

  let pipeline = redisClient.pipeline();

  pipeline.hget(`user:${client.request.user.uniqueID}`, "status");
  pipeline.hget(`user:${client.request.user.uniqueID}test`, "status");

  pipeline.exec(function(err, result){
      console.log(result)
  });
@nelsonic
Copy link
Member

@supertiger1234 what are you trying to achieve? Is your objective to have an atomic transaction like operation that succeeds or fails?

@SupertigerDev
Copy link
Author

Well I'm gonna loop through my mongodb database and check which client exist in the redis. But to do that, I want to do multiple queries at once so I don't need to send a lot of requests at once

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