Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oivoodoo/redis_poolex
Redis pool using poolboy(connection pool) and exredis(redis client).
https://github.com/oivoodoo/redis_poolex
elixir redis
Last synced: 26 days ago
JSON representation
Redis pool using poolboy(connection pool) and exredis(redis client).
- Host: GitHub
- URL: https://github.com/oivoodoo/redis_poolex
- Owner: oivoodoo
- Created: 2015-11-20T22:01:29.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-29T09:36:03.000Z (almost 8 years ago)
- Last Synced: 2024-04-24T17:06:22.976Z (7 months ago)
- Topics: elixir, redis
- Language: Elixir
- Homepage:
- Size: 90.8 KB
- Stars: 20
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RedisPoolex
Redis connection pool using poolboy and exredis libraries.
# Examples
alias RedisPoolex, as: Redis
Redis.query(["SET", "key1", "value1"]) => "OK"
Redis.query(["GET", "key1"]) => "value1"
Redis.query(["GET", "key2"]) => :undefined## Installation
If [available in Hex](https://hex.pm/packages/redis_poolex), the package can be installed as:
1. Add redis_poolex to your list of dependencies in `mix.exs`:
def deps do
[{:redis_poolex, "~> 0.0.5"}]
end2. Ensure redis_poolex is started before your application:
def application do
[applications: [:redis_poolex]]
end## Dev Env
`make build` - setup containers
`make test` - run test cases