redis_connection_pool v0.1.6 RedisPool

Application that combines Poolboy and Exredis to provide a simple Redis connection pool.

Example:

  alias RedisPool, as: Redis

  Redis.query(["SET", "key1", "value1"]) => {:ok, "OK"}
  Redis.query(["GET", "key1"]) => {:ok, "value1"}
  Redis.query(["GET", "key2"]) => {:undefined, nil}

Summary

Functions

Sends a query command to the Redis connection pool

Sends a pipelined query command to the Redis connection pool

Starts the RedisPool application

Functions

query(args)

Sends a query command to the Redis connection pool.

query_pipe(args)

Sends a pipelined query command to the Redis connection pool.

start(type, args)

Starts the RedisPool application.

See http://elixir-lang.org/docs/stable/elixir/Application.html for more information on OTP Applications