Skip to main content

Module kv

Module kv 

Source
Expand description

Generic key-value store trait and SQLite implementation. Generic key-value store trait and a SQLite implementation.

KvStore is a small, sync, byte-oriented abstraction so that callers (LLM response cache, embedding cache, session state, rate-limit counters) can depend on Arc<dyn KvStore> without binding to SQLite. SqliteKvStore is the bundled implementation over a single guarded connection.

Structs§

SqliteKvStore
SQLite-backed KvStore over one connection guarded by a mutex.

Traits§

KvStore
Generic byte-oriented key-value store.