Skip to main content

Crate embedded_redis

Crate embedded_redis 

Source
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:

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