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

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

  • LibRedis.Standalone
  • LibRedis.Cluster

Link to this section Summary

Link to this section Types

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

Link to this section 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()

Link to this section 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()