Registry / database / bb8-redis

bb8-redis

JSON →
library0.26.0rscratesunverified

Full-featured async (tokio-based) Redis connection pool.

# Cargo.toml [dependencies] bb8-redis = "0.26.0"
INSTALL
IMPORT
SIG · BB8-REDIS
B
bb8-redis
databaserustv0.26.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.

RedisConnectionManager
use bb8_redis::RedisConnectionManager;

Creates a Redis connection pool and pings the server.

use bb8_redis::{RedisConnectionManager, bb8::Pool}; #[tokio::main] async fn main() { let manager = RedisConnectionManager::new("redis://localhost").unwrap(); let pool = Pool::builder().build(manager).await.unwrap(); let mut conn = pool.get().await.unwrap(); let _: () = redis::cmd("PING").query_async(&mut *conn).await.unwrap(); }
Debug
Known issues
gotchaRequires a Tokio runtime.
fix
Ensure your application uses `#[tokio::main]` or another Tokio runtime.
affects: >=0.26.0
Upgrade
Version history
0.26.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
24
OpenAI (training)
1
Resources
bb8-redis — cargo add bb8-redis · libregistry