2 releases
Uses new Rust 2024
| 0.1.1 | Jul 25, 2025 |
|---|---|
| 0.1.0 | Jul 25, 2025 |
#2037 in Database interfaces
13KB
314 lines
Stashy ๐ฆ
A trait-based abstraction for stashing key-value data in Rust.
you to define how and where data gets stashed โ whether locally in memory,
remotely, or anywhere else you can implement the Stash trait.
๐ Features
- ๐งฉ Trait-based: Define your own stashing logic by implementing the
Stashtrait. - ๐ Pluggable backends: Redis, local in-memory, file-based โ anything goes.
- ๐งช Test-friendly: Swap out stashes in tests or use a mock stash.
- โ Minimal dependencies: Lightweight by default.
๐งฐ Use Cases
- Session storage
- Caching layers
- Feature flag toggles
๐ Planned Backend Implementations
- In-memory
- Filesystem
- Redis
- DynamoDB
- RocksDB
Dependencies
~7โ20MB
~211K SLoC