Session cache (cache)
The optional cache MCP tool stores temporary key/value data in the ClawQL server process. It is not durable and not the Obsidian vault.
- Enable:
CLAWQL_ENABLE_CACHE=1(ortrue/yes). - Storage: A single
Mapin this Node process — no disk, nomemory.db, no Markdown. - Eviction: LRU when
CLAWQL_CACHE_MAX_ENTRIESis reached (default 10_000).getandsetrefresh recency;setmay returnevictedwhen keys were dropped to make room. - Per-value limit:
CLAWQL_CACHE_MAX_VALUE_BYTES(default 1 MiB, max 16 MiB).
For anything that must survive restarts or be shared across replicas, use memory_ingest and memory_recall with a configured vault path — not cache.
Canonical reference (operations, semantics, multi-replica): cache-tool.md · mcp-tools.md · issue #75.
See also Tools for how cache fits alongside other MCP tools.
