Skip to main content

Module cache

Module cache 

Source
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§

CacheStats
Statistics collected by a ClawCache instance.
ClawCache
A minimal LRU cache with a fixed maximum capacity.