/listpack-redis

Listpack implementation based on Redis.

Primary LanguageRustOtherNOASSERTION

CI Crates Docs License

Listpack (based on the Redis implementation)

This crate provides a Rust-idiomatic re-implementation of the "listpack" data-structure implemented in Redis as a part of Redis.

This implementation is:

  1. fully written in Rust.
  2. Allows to specify a custom allocator.
  3. Allows to store more types than in Redis: f64, u64, bool, null and objects of custom type.

Description

Please follow the official description of the data structure first.

In order to implement the additional types, the unused data subencodings are used.

MSRV (Minimally-Supported Rust Version)

The MSRV is 1.70.

Building

Simply build using cargo:

cargo build

Examples

Please take a look at the /examples directory, where you may find a few examples showing the use of the crate.

Additionally, you may check out the unit tests /src/listpack.rs directory to get familiar with some more specific use-cases.

LICENSE

License