Expand description
Persistence layer.
The engine talks to the Storage trait only. Two backends ship in-box:
FileStorage (checksummed, with selectable Durability) and
MemoryStorage (ephemeral). Cache is a write-through LRU that can wrap
either.
Structs§
- Cache
- A write-through cache in front of a backing
Storage. - File
Storage - JSON storage backed by one file per key, with SHA-256 checksums.
- Memory
Storage - Thread-safe in-memory storage. Useful for tests and ephemeral runs.
Enums§
- Durability
- Write-durability strategy for
FileStorage.
Traits§
- Storage
- A pluggable key/value store for JSON values.
Type Aliases§
- Storage
Result - Result alias local to the storage layer.