RedisZ v0.1.0 RedisZ View Source
RedisZ - Redis Super: Full featured Redis adapter for Elixir based on Redix.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor
Callback invoked to start the supervisor and during hot code upgrades
Link to this section Types
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
command(conn, command, opts \\ [])
View Source
command(atom(), Redix.command(), keyword()) :: {:ok, Redix.Protocol.redis_value()} | {:error, atom() | Redix.Error.t()}
Link to this function
command!(conn, command, opts \\ [])
View Source
command!(atom(), Redix.command(), keyword()) :: Redix.Protocol.redis_value() | no_return()
Link to this function
command_to_all_shards(conn, command, opts \\ [])
View Source
command_to_all_shards(atom(), Redix.command(), keyword()) :: %{ optional(atom()) => {:ok, Redix.Protocol.redis_value()} | {:error, atom() | Redix.Error.t()} }
Link to this function
init(args)
View Source
init(keyword()) :: {:ok, {:supervisor.sup_flags(), [:supervisor.child_spec()]}} | :ignore
Callback invoked to start the supervisor and during hot code upgrades.
Developers typically invoke Supervisor.init/2
at the end of their
init callback to return the proper supervision flags.
Callback implementation for Supervisor.init/1
.
Link to this function
pipeline(conn, commands, opts \\ [])
View Source
pipeline(atom(), [Redix.command()], keyword()) :: {:ok, [Redix.Protocol.redis_value()]} | {:error, atom() | Redix.Error.t()}
Link to this function
pipeline!(conn, commands, opts \\ [])
View Source
pipeline!(atom(), [Redix.command()], keyword()) :: [Redix.Protocol.redis_value()] | no_return()
Link to this function
pipeline_to_all_shards(conn, commands, opts \\ [])
View Source
pipeline_to_all_shards(atom(), [Redix.command()], keyword()) :: %{ optional(atom()) => {:ok, [Redix.Protocol.redis_value()]} | {:error, atom() | Redix.Error.t()} }