Crates.io | redis-module |
lib.rs | redis-module |
version | 2.0.7 |
source | src |
created_at | 2019-10-30 15:46:04.330205 |
updated_at | 2023-10-22 18:04:24.812092 |
description | A toolkit for building Redis modules in Rust |
homepage | |
repository | https://github.com/RedisLabsModules/redismodule-rs |
max_upload_size | |
id | 176957 |
size | 461,583 |
This crate provides an idiomatic Rust API for the Redis Modules API. It allows writing Redis modules in Rust, without needing to use raw pointers or unsafe code. See here for the most recent API documentation.
cargo build --example hello
hello
module
redis-server --loadmodule ./target/debug/examples/libhello.so
redis-server --loadmodule ./target/debug/examples/libhello.dylib
HELLO.MUL 31 11
.See the examples directory for some sample modules.
This crate tries to provide high-level wrappers around the standard Redis Modules API, while preserving the API's basic concepts. Therefore, following the Redis Modules API documentation will be mostly relevant here as well.
The following are some modules that are built on this crate:
Several member of the community have written their own modules based on this.