Expand description
Easy library with some abstractions to implement cache stores.
Provides several features like:
- Traits to implement cache stores. Feature faillible and infallible variants.
- Cache stores with default generators that activate by default when needed.
- Thread safe variants of everything possible under the “thread-safe” feature.
- Default cache stores implemented for filesystem, memory, etc. (might require some features)
§Examples
- stores: For examples on some common stores implemented.
- generative: For examples on the concept of generative cache stores.
§Contributing, Issues & Discussions
For anything related, please consult the official repository: https://github.com/javalsai/rs-ezcache
Modules§
- This module provides cache stores with generator functions.
- Prelude of the module.
- Several implementations of cache stores for common use cases, all of require std for now:
- Thread safe traits around implementations of all possible cache store types. They are analogous to the default traits at the root of this crate but each method has
ts_
prepended (Thread Safe), this allows the thread safe implementations to implement the thread unsafe methods too.
Macros§
- A macro to be used by [
ambassador::Delegate
] to delegateCacheStore
- A macro to be used by [
ambassador::Delegate
] to delegateTryCacheStore
- Macro to automatically implement
CacheStore
on a struct that implementsThreadSafeCacheStore
- Macro to automatically implement
TryCacheStore
on a struct that implementsThreadSafeTryCacheStore
Structs§
- Struct to convert the error type of a
TryCacheStore
into another
Traits§
- Trait for a infallible cache store
- Trait for a fallible cache store, analogous to CacheStore