redis_sessions v0.2.3 RedisSessions.RedixPool

A library of functions used to create and use a Redis pool through Redix.

Link to this section Summary

Functions

execute a singleredis command

init redix pool

execute mutliple redis commands at once

start supervisor

Link to this section Functions

Link to this function command(command)

execute a singleredis command

Examples

iex> RedisSessions.RedixPool.command ~w(PING)
{:ok, "PONG"}

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] }

start supervisor