kevy-store
The keyspace for kevy — a zero-dependency, pure-Rust, single-threaded multi-type store with lazy expiration.
Each Redis data type is backed by a modern std structure, not Redis's
legacy encodings:
| Type | Backing structure |
|---|---|
| String | Vec<u8> |
| Hash / Set | HashMap / HashSet (hashbrown Swiss table) |
| List | VecDeque (ring buffer — O(1) at both ends) |
| Sorted set | HashMap + BTreeSet<(score, member)> (a B-tree, not a skiplist) |
- Lazy TTL expiry;
WRONGTYPEerrors via [StoreError]. &mut self, lock-free API — designed to be sharded one-per-core.- Snapshot hooks (
snapshot_each/load_*) for persistence. #![forbid(unsafe_code)], zero dependencies.
use Store;
let mut s = new;
s.set;
assert_eq!;
License
Licensed under either of MIT or Apache-2.0 at your option.