View Source LibRedis.Client behaviour (lib_redis v0.1.3)

Redis client behaviour, there are 2 implementations of this behaviour:

  • LibRedis.Standalone
  • LibRedis.Cluster

Summary

Types

@opaque command_t()
@type resp_t() :: {:ok, term()} | LibRedis.Error.t()
@type t() :: struct()

Callbacks

Link to this callback

command(t, command_t, keyword)

View Source
@callback command(t(), command_t(), keyword()) :: resp_t()
@callback new(keyword()) :: t()
Link to this callback

pipeline(t, list, keyword)

View Source
@callback pipeline(t(), [command_t()], keyword()) :: resp_t()
@callback start_link(keyword()) :: LibRedis.Typespecs.on_start()

Functions

Link to this function

command(client, command, opts)

View Source
@spec command(t(), command_t(), keyword()) :: resp_t()
Link to this function

pipeline(client, commands, opts)

View Source
@spec pipeline(t(), [command_t()], keyword()) :: resp_t()