referenceJune 22, 2026· 3 min read
How to use CSET: store an answer the safe way
CSET writes an answer into the semantic cache — running the five-stage anti-poisoning pipeline before it accepts anything.
CSET is the write. You give it a query and the answer, optionally a TTL, tenant, and the model that produced it. Every CSET is scored by the write-trust pipeline before it's accepted, so a poisoned or incoherent answer never enters the cache.
crowkis cli
crowkis cli 127.0.0.1:6379 > CSET "how do refunds work?" "Refunds take 5-7 business days." EX 3600 OK > CSET "refund policy" "Refunds take 5-7 business days." TENANT acme MODEL gpt-4o OK
The EX flag sets a TTL in seconds; TENANT scopes the entry for isolation; MODEL tags it for accounting and migration. Leave them off and sensible defaults apply.