# Redix

> Redis and Valkey client for Elixir

Source: https://talira.ai/catalog/redix-pqp6dkqy
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / drivers](https://talira.ai/categories/libraries/databases/drivers), [languages / elixir](https://talira.ai/categories/languages/elixir)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Andrea Leopardi](https://talira.ai/orgs/andrea-leopardi.md)

Redix is a [Redis](https://talira.ai/catalog/redis-v917j45s.md) and [Valkey](https://talira.ai/catalog/valkey-21xnmrxe.md) 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.

## Links

- GitHub: https://github.com/whatyouhide/redix
- Docs: https://hexdocs.pm/redix

## 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

## Trust

Overall: 0.52 out of 1.
Signals: maintenance 0.73, adoption 0.61, momentum 0.29, community 0.71, backing 0.30, extensibility 0.00.

- last commit 5 days ago
- 20 commits in the last 90 days
- 1.1k GitHub stars
- 58 contributors
- accepts sponsorship (Github)
- backed by Andrea Leopardi

## Related

- Works with [Redis](https://talira.ai/catalog/redis-v917j45s.md)
- Works with [Valkey](https://talira.ai/catalog/valkey-21xnmrxe.md)

## Alternatives

- [MyXQL](https://talira.ai/catalog/myxql-8g0pgsdy.md): MySQL driver for Elixir
- [Postgrex](https://talira.ai/catalog/postgrex-wrgb4p9b.md): PostgreSQL driver for Elixir

## Sources

[^1]: https://github.com/whatyouhide/redix/blob/main/LICENSE.txt (checked 27 Nov 2026)
[^2]: https://github.com/whatyouhide/redix (checked 27 Nov 2026)
