Expand description
This crate offers an asynchronous Redis client for no_std targets.
Both RESP2 and RESP3 protocol are supported.
This crate consists of three parts:
- network module for network details (connection handling, response management, etc.) + regular command client
- commands module for Redis command abstractions
- subscription module for Redis subscription client
let stack = Stack::default();
let clock = StandardClock::default();
let server_address = SocketAddr::from_str("127.0.0.1:6379").unwrap();
let mut connection_handler = ConnectionHandler::resp2(server_address);
let client = connection_handler.connect(&stack, Some(&clock)).await.unwrap();
let response = client.set("key", "value").await.unwrap();Modulesยง
- commands
- Redis command abstractions
- network
- Connection and regular Client logic
- subscription
- Subscription client