프로젝트
GitHub에서 보기
RedisLabsModules/redismodule-rs
소개
Rust API for Redis Modules API
데이터 및 분석측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalredismodule-rs
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.
Running the example module
- Install Rust
- Install Redis, most likely using your favorite package manager (Homebrew on Mac, APT or YUM on Linux)
- Run
cargo build --example hello - Start a redis server with the
hellomodule- Linux:
redis-server --loadmodule ./target/debug/examples/libhello.so - Mac:
redis-server --loadmodule ./target/debug/examples/libhello.dylib
- Linux:
- Open a Redis CLI, and run
HELLO.MUL 31 11.
Writing your own module
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.
Redis Modules based on this crate
The following are some modules that are built on this crate:
Several member of the community have written their own modules based on this.
관련 프로젝트 살펴보기
불러오는 중…