Redis and Valkey client for Elixir
open sourceMITfree
Redix is a Redis and Valkey client written in pure Elixir, built for speed, correctness and resiliency: it reconnects automatically after network errors, with a configurable backoff. It doesn't wrap Redis commands in Elixir functions; it sends any command as a list of strings, singly or as a pipeline, and has a separate process for Pub/Sub. It supports SSL and Redis Sentinel. MIT licensed.
Problems it solves
- connect to Redis from an Elixir app
- use Valkey from my Phoenix application
- send several Redis commands in one round trip from Elixir
- keep my Elixir app's Redis connection alive when the network drops
- subscribe to Redis Pub/Sub channels from Elixir processes
- connect an Elixir app to Redis through Sentinel for failover
Features
- sends any Redis command as a list of strings
- pipelining
- automatic reconnection with backoff after network errors
- Pub/Sub through a dedicated process
- SSL connections
- Redis Sentinel, with primary and replica selection
Alternatives
The same job
These do what Redix does.
