How It Works
- Get Segment ID — Use MCP (
CatalystbyZoho_List_Cache_Segments) if available; otherwise retrieve it from the console or .catalystrc.
- Load
references/cache-basics.md — for SDK operations, TTL limits (48 hr max), and the segment.delete() / segment.update() gotchas.
- String values only — All cache values are strings. Always
JSON.stringify before put and JSON.parse after get.
- TTL behavior —
segment.update() resets TTL to the new value, not adds to existing. segment.delete() returns null (not an error) if the key is missing.
Triggers
Use this skill for: "Cache", "cache segment", "cache key", "cache value", "TTL", "in-memory store", segment.get, segment.put, segment.delete, "session data", "temporary data Catalyst", "cache vs Data Store", or "48-hour cache".
References
| Reference |
Load when the query is about… |
references/cache-basics.md |
SDK operations (get, put, delete, update), Segment ID, 48hr TTL max, string-only values, segment.delete() null gotcha, segment.update() TTL gotcha |
1---2name: catalyst-cache3description: Catalyst Cache — in-memory key-value store with TTL for ephemeral session and temporary data. Trigger on 'Cache', 'cache segment', 'cache key', 'TTL', 'segment.put', 'segment.get', or 'temporary data Catalyst'.4---5
6## How It Works
7
81. **Get Segment ID** — Use MCP (`CatalystbyZoho_List_Cache_Segments`) if available; otherwise retrieve it from the console or `.catalystrc`.
92. **Load `references/cache-basics.md`** — for SDK operations, TTL limits (48 hr max), and the `segment.delete()` / `segment.update()` gotchas.
103. **String values only** — All cache values are strings. Always `JSON.stringify` before `put` and `JSON.parse` after `get`.
114. **TTL behavior** — `segment.update()` resets TTL to the new value, not adds to existing. `segment.delete()` returns `null` (not an error) if the key is missing.
12
13## Triggers
14
15Use this skill for: "Cache", "cache segment", "cache key", "cache value", "TTL", "in-memory store", `segment.get`, `segment.put`, `segment.delete`, "session data", "temporary data Catalyst", "cache vs Data Store", or "48-hour cache".
16
17## References
18
19| Reference | Load when the query is about… |
20|-----------|-------------------------------|
21| `references/cache-basics.md` | SDK operations (get, put, delete, update), Segment ID, 48hr TTL max, string-only values, segment.delete() null gotcha, segment.update() TTL gotcha |