Registry / database / deadpool-redis

deadpool-redis

JSON →
library0.23.0rscratesunverified

A dead simple async pool for Redis connections.

# Cargo.toml [dependencies] deadpool-redis = "0.23.0"
INSTALL
IMPORT
SIG · DEADPOOL-REDIS
D
deadpool-redis
databaserustv0.23.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Pool
use deadpool_redis::Pool;

Creates a Redis connection pool and acquires a connection.

use deadpool_redis::{Config, Pool, Runtime}; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let cfg = Config::from_url("redis://localhost:6379"); let pool: Pool = cfg.create_pool(Some(Runtime::Tokio1))?; let mut conn = pool.get().await?; Ok(()) }
Debug
Known issues
gotchaRequires a runtime feature flag (e.g., tokio1 or async-std1) to be enabled.
fix
Add `features = ["tokio1"]` to your Cargo.toml dependency.
affects: >=0.20.0
Upgrade
Version history
0.23.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
36
OpenAI (training)
1
Resources
deadpool-redis — cargo add deadpool-redis · libregistry