Crate persistent_map

Source
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§

in_memory
sqlite
SQLite backend implementation for PersistentMap.

Structs§

PersistentMap
A persistent key-value map with in-memory caching.

Enums§

PersistentError
Errors that can occur when using PersistentMap.

Traits§

StorageBackend
A trait for implementing storage backends for PersistentMap.

Type Aliases§

Result
Shorthand Result with error defaulting to PersistentError.