Thanks to visit codestin.com
Credit goes to lib.rs

2 releases

Uses new Rust 2024

0.1.1 Jul 25, 2025
0.1.0 Jul 25, 2025

#2037 in Database interfaces

MIT license

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 Stash trait.
  • ๐Ÿ”Œ 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