Expand description
In-memory LRU cache layer for claw-core.
ClawCache is a simple, generic LRU (Least-Recently-Used) cache that
sits in front of the SQLite store for frequently accessed records. Cache
capacity is expressed in a configurable maximum number of entries; actual
memory usage depends on the size of the cached values.
This module provides the cache infrastructure only. The individual store
modules in crate::store decide which records to cache and for how long.
Structs§
- Cache
Stats - Statistics collected by a
ClawCacheinstance. - Claw
Cache - A minimal LRU cache with a fixed maximum capacity.