使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/catalystbyzoho/agent-skills --skill catalyst-cache开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
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.stringifybeforeputandJSON.parseafterget. - TTL behavior — TTL is in HOURS (max 48), not seconds.
segment.update()called WITHOUT an expiry argument silently resets the key's TTL to the 48-hour maximum (a 1-hour key becomes a 48-hour key).segment.delete()does not remove the key — it setscache_valuetonulland the key persists; a latergetValue()returnsnullwith HTTP 200 and never throws.
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 |




