redis-rs

redis-rs

github.com

4

About this website

redis-rs is the most widely used Redis client for the Rust programming language, providing both synchronous and asynchronous (Tokio, async-std) interfaces for communicating with Redis. Maintained by the redis-rs organization with over 3,700 stars as of 2026, the library serves as the foundation for most Rust applications that interact with Redis, including web frameworks like Axum and Actix, caching layers, and message queue systems. Key features include: both blocking and async APIs (via the tokio-comp and async-std-comp feature flags), connection pooling via the r2d2 crate (sync) or bb8 and deadpool pools (async), support for Redis Cluster with automatic MOVED and ASK redirection handling, pub/sub channel subscription with message filtering, pipelining for executing multiple commands in a single network round-trip, Lua scripting via EVAL and EVALSHA with automatic SHA caching, transactions with MULTI/EXEC/DISCARD and WATCH for optimistic locking, Redis Streams (XADD, XREAD, XGROUP, XACK) for event streaming, Sentinel support for high-availability deployments, TLS/SSL encrypted connections, Unix domain socket connections, RESP2 and RESP3 protocol support (via the resp3 feature flag), and a derive macro for automatic serialization and deserialization of Rust structs to/from Redis hash structures. The library provides a flexible command builder pattern via the redis::cmd function and a macro-based DSL (redis::Commands trait) for type-safe command execution. As of 2026, version 0.27+ requires Rust 1.74+.

Tags & Categories

Statistics

4
Views
0
Clicks
0
Like
0
Dislike

Comments

Log In to post a comment

No comments yet. Be the first!