Skip to main content

Crate engram

Crate engram 

Source
Expand description

Engram is an asynchronous two-tier cache.

Values are kept deserialized in an in-memory Moka cache and persisted as serialized blobs in SQLite. L2 rows may be Zstandard-compressed.

Structs§

CacheEntry
A cached value returned together with its metadata.
CacheKey
A cache key with a caller-controlled, stable schema tag.
CacheMetadata
Expiration and source information for a cached value.
Engram
A reusable asynchronous cache with Moka memory and SQLite persistence tiers. Engram is cheap to clone; clones share memory, persistence, and synchronization.
EngramBuilder
Builds an crate::Engram instance.

Enums§

CacheTier
The tier that satisfied a cache read.
Compression
The encoding used for values written to persistent storage.
Error
Failures returned by Engram operations.
SqliteSynchronous
SQLite’s durability/performance trade-off in WAL mode.

Type Aliases§

Result