Persistent Cache for Rust
A high-performance, thread-safe persistent cache with TTL support.
Features
- 🚀 Thread-safe operations using DashMap
- 💾 Optional persistent storage
- ⏱ Time-to-live (TTL) support
- 🔒 Key-level locking for safe concurrent access
- 📦 Efficient binary serialization with bincode
Usage
Add to your Cargo.toml:
[]
= "0.1"
Example
use ;
use Duration;
let cache = new?;
cache.set?;
let value: String = cache.get.unwrap;
Contributing
Contributions are welcome! Please open an issue or submit a PR for:
- New features
- Performance improvements
- Bug fixes
License
Dual-licensed under MIT or Apache 2.0 at your option.