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

Is there any method like qp_noreply? #111

Open
hui6075 opened this issue Mar 12, 2018 · 1 comment
Open

Is there any method like qp_noreply? #111

hui6075 opened this issue Mar 12, 2018 · 1 comment

Comments

@hui6075
Copy link

hui6075 commented Mar 12, 2018

Hi there,
I use eredis as client to store erlang server's log, and I don't care whether redis command executed success or failure, so is there any method like qp_noreply? For log storage, LPUSH+LTRIM is a common pipeline. thanks!

@paulo-ferraz-oliveira
Copy link

I'd say, the easiest way to not care about the reply is to simply ignore it, like:

_ = eredis:qp(Client, Pipeline)

This is a blocking operation, of course.

Another way to do this is to simply spawn a process and also ignore the reply, like:

spawn(fun () -> _ = eredis:qp(Client, Pipeline) end)

but I don't know your actual use case.

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