Amnesia
An expressive Rust library for interacting with a Cache.
Features
- Driver-Based Architecture: Easily switch between different caching strategies by using drivers.
- Asynchronous API: Built with async/await for non-blocking I/O operations.
- Serialization: Leverage Serde for serializing and deserializing cache values.
- Time-to-Live (TTL): Set expiration times for cache entries to ensure stale data is not served.
- Extensible: Implement your own cache drivers to extend functionality.
Usage
let mut cache = new.await?;
let my_value = cache.remember.await?;
cache.forget.await?;
Please refer to the documentation on docs.rs for detailed usage instructions.
License
This project is licensed under the MIT License - see the LICENSE file for details.