Expand description
§PersistentMap
persistent-map
provides an in-memory key-value store with async, pluggable persistence.
It combines the speed of DashMap
for in-memory operations
with the durability of various storage backends for persistence.
§Features
- Fast in-memory access: Uses
DashMap
for concurrent read/write operations - Async API: Non-blocking I/O operations for persistence
- Multiple backends:
SQLite
,CSV
, in-memory, and extensible for more - Type-safe: Works with any types that implement the required traits
§Example
use persistent_map::{PersistentMap, Result};
use persistent_map::sqlite::SqliteBackend;
Modules§
Structs§
- Persistent
Map - A persistent key-value map with in-memory caching.
Enums§
- Persistent
Error - Errors that can occur when using
PersistentMap
.
Traits§
- Storage
Backend - A trait for implementing storage backends for
PersistentMap
.
Type Aliases§
- Result
- Shorthand Result with error defaulting to
PersistentError
.