4 releases (breaking)

0.4.0 Dec 20, 2021
0.3.0 Apr 14, 2021
0.2.0 Apr 11, 2021
0.1.0 Apr 8, 2021

#303 in Caching


Used in rsmc-tokio

MIT license

41KB
895 lines

rsmc-core

This provides the core implementation of rsmc, using runtime-agnostic async functions. To use rsmc, you need to use one of the runtime-specific libraries that call rsmc-core.

This is still an early implementation, so expect some bugs and missing features. If you find something is wrong, please open a GitHub issue (or, even better, a PR to fix the issue!)

Expect some breaking changes before a 1.0 release.

Features:

  • Async
  • Connection pooling provided by deadpool
  • TLS support
  • Binary protocol support
    • get, multi_get
    • set, multi_set
    • delete, multi_delete
    • add, replace
    • increment, decrement
  • Consistent hashing
    • Support for different hashing algorithms.
  • Compression
    • Support for different compression algorithms.

lib.rs:

This crate provides core libraries for rsmc implementations into various async runtimes. If compression is undesired, it is possible to disable the zlib feature (on by default.)

Dependencies

~3.5–5.5MB
~98K SLoC