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 從公開儲存庫中收錄這些內容。

檢舉或申請下架