RedisPoolex
Redis connection pool using poolboy and exredis libraries.
Examples
alias RedisPoolex, as: Redis
Redis.set("key1", "value1") => "OK"
Redis.get("key1") => "value1"
Redis.get("key2") => :undefinedInstallation
If available in Hex, the package can be installed as:
Add redis_poolex to your list of dependencies in
mix.exs:def deps do
[{:redis_poolex, "~> 0.0.2"}]end
Ensure redis_poolex is started before your application:
def application do
[applications: [:redis_poolex]]end