Redix.noreply_command
You're seeing just the function
noreply_command
, go back to Redix module for more information.
Specs
noreply_command(connection(), command(), keyword()) :: :ok | {:error, atom() | Redix.Error.t() | Redix.ConnectionError.t()}
Same as command/3
but tells the Redis server to not return a response.
This function is useful when you want to send a command but you don't care about the response.
Since the response is not returned, the return value of this function in case the command
is successfully sent to Redis is :ok
.
Not receiving a response means saving traffic on the network and memory allocation for the
response. See also noreply_pipeline/3
.
This function accepts the same options as pipeline/3
.
Examples
iex> Redix.noreply_command(conn, ["INCR", "mykey"])
:ok
iex> Redix.command(conn, ["GET", "mykey"])
{:ok, "1"}