Catalyst Cache

作者 catalystbyzoho9670b79d72fe无许可证2 个星标收录于 2026年10月8日更新于 2026年10月8日仓库8周前更新

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'.

AI 生成的概览

指导使用 Catalyst Cache,一种带 TTL 的内存键值存储,用于临时会话数据。

功能
该技能说明如何使用 Catalyst Cache,这是一种用于临时会话和临时数据的内存键值存储。内容涵盖获取 segment ID、加载缓存参考文档、以字符串形式存储值并进行 JSON 序列化,以及处理 TTL 行为。它还记录了若干注意事项,例如 update 会将 TTL 重置为 48 小时,delete 对不存在的键返回 null。
适用场景
适用于有关 Cache、缓存 segment 或键、TTL、内存存储、Catalyst 中的会话或临时数据,以及缓存与 Data Store 对比的查询。它面向 segment.get、segment.put、segment.delete 和 segment.update 等 SDK 操作。
运行要求
需要访问 Catalyst 环境;进行 MCP 调用时需要 CatalystbyZoho MCP 工具;需要来自 MCP、控制台或 .catalystrc 的 segment ID;以及所引用的 cache-basics.md 文件。该技能不附带脚本。

How It Works

Before any MCP call, establish context once per session via the workspace readiness gate: ../catalyst-basics/references/preflight.md. It resolves and reconciles the org/project so CatalystbyZoho_List_All_Segments targets the right project.

  1. Get Segment ID — Use MCP (CatalystbyZoho_List_All_Segments) if available; otherwise retrieve it from the console or .catalystrc.
  2. Load references/cache-basics.md — for SDK operations, TTL limits (48 hr max), and the segment.delete() / segment.update() gotchas.
  3. String values only — All cache values are strings. Always JSON.stringify before put and JSON.parse after get.
  4. TTL behavior — segment.update(key, value) without an expiry argument resets the TTL to 48 hours (the max), not the key's original TTL. Always pass the TTL explicitly (in hours) to preserve it: segment.update(key, value, ttlHours). 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

ReferenceLoad when the query is about…
references/cache-basics.mdSDK operations (get, put, delete, update), Segment ID, 48hr TTL max, string-only values, segment.delete() null gotcha, segment.update() TTL gotcha

来源与署名

来源:catalystbyzoho/claude-plugin位于skills/catalyst-cache提交9670b79

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架