RedisSessions.RedixPool (redis_sessions v0.3.0)
A library of functions used to create and use a Redis pool through Redix.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
execute a singleredis command
init redix pool
execute mutliple redis commands at once.
start supervisor
Link to this section Functions
Link to this function
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
command(command)
execute a singleredis command
Examples
iex> RedisSessions.RedixPool.command ~w(PING)
{:ok, "PONG"}
Link to this function
init(_)
init redix pool
Link to this function
pipeline(commands)
execute mutliple redis commands at once.
Examples
iex> RedisSessions.RedixPool.pipeline( [ ~w(SET redissessions-test woohoo!), ~w(GET redissessions-test), ~w(DEL redissessions-test)] )
{:ok, ["OK", "woohoo!", 1] }
iex> RedisSessions.RedixPool.pipeline( [ [ "SET", "redissessions-list", "woohoo!"], ["GET", "redissessions-list"], [ "DEL", "redissessions-list" ]] )
{:ok, ["OK", "woohoo!", 1] }
Link to this function
start_link(args)
start supervisor