#cache #redis #in-memory #service #ttl

cache_service

Cache service based on Redis and in-memory cache

2 stable releases

1.1.0 May 24, 2024
1.0.0 May 24, 2024

#266 in Caching

MIT license

17KB
479 lines

Rust Cache Crate

This crate provides a straightforward and efficient way to cache string values both in-memory and in Redis, with a specified time-to-live (TTL).

Features

  • In-memory caching for fast retrieval.
  • Redis integration for distributed caching.
  • Time-to-Live (TTL) support for cache entries.

Dependencies

  • Ensure you have Redis running and accessible as this crate requires Redis for distributed caching functionality.

Contribution

Contributions are welcome! Please feel free to submit a pull request.

Dependencies

~3.5–5MB
~91K SLoC