8000 Is there any method like qp_noreply? · Issue #111 · wooga/eredis · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Is there any method like qp_noreply? #111

Open

Description

@hui6075

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!

Activity

  1. paulo-ferraz-oliveira commented on Sep 12, 2018

    @paulo-ferraz-oliveira

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0