Skip to main content

Module storage

Module storage 

Source
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.
FileStorage
JSON storage backed by one file per key, with SHA-256 checksums.
MemoryStorage
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§

StorageResult
Result alias local to the storage layer.