Expand description
LMDB-backed storage for CachedEntry values, keyed by query hash, with a
reverse tag index for invalidation.
Two databases in one heed environment:
entries: cache key (Str) ->CachedEntrybytes (Bytes, rkyv).tags: tag (Str) -> cache key (Str),DUP_SORTso one tag maps to every cache key it was recorded against — this is what makesinvalidatean O(matching entries) reverse lookup instead of a fullentriesscan.
Structs§
- Cache
- Cache
Stats - Snapshot of a cache’s current size — see
Cache::stat.
Functions§
- cache_
key sha256(sql) + bound parameter values, hex-encoded — see the cache layer plan’s key-simplification note:compiled.sqlis already a canonical, whitespace-insensitive form, so hashing it directly (rather than a separately normalized AST) is both simpler and precise.