← 返回 Skills 市场
raghulpasupathi

Smart Cache

作者 raghulpasupathi · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
1084
总下载
1
收藏
8
当前安装
1
版本数
在 OpenClaw 中安装
/install smart-cache
功能描述
Intelligent caching with LRU/LFU strategies and TTL management
安全使用建议
This skill is internally coherent and low-risk: it’s an instruction-only skill containing example JavaScript for an in-memory cache and does not request credentials or perform network operations. Before using it in production, note that SKILL.md is only example code (there are no shipped code files or install steps) — you or your environment would need to actually include/execute the code. Review the implementation for scalability and correctness (updateAccessOrder uses array.filter which is O(n) per access and may not scale for large caches; calculateHitRate is a simplistic heuristic, TTL handling is in-memory only and not durable across restarts). If you need a production-ready cache, consider using a well-maintained library (e.g., lru-cache or a managed cache) rather than copying this snippet. Otherwise, it is reasonable to install/invoke for local testing or as a reference.
功能分析
Type: OpenClaw Skill Name: smart-cache Version: 1.0.0 The OpenClaw skill bundle 'smart-cache' is classified as benign. The `SKILL.md` file contains a JavaScript implementation of an in-memory caching utility. The code uses standard JavaScript data structures and performs no file system, network, or process-level operations. There is no evidence of data exfiltration, persistence mechanisms, obfuscation, or prompt injection attempts against the AI agent within the markdown instructions. The skill's behavior is entirely aligned with its stated purpose of providing intelligent caching.
能力评估
Purpose & Capability
Name/description (LRU/LFU, TTL) match the JavaScript implementation in SKILL.md. The code implements set/get/delete/evict and exposes SmartCache — all consistent with a caching utility.
Instruction Scope
SKILL.md contains a self-contained JavaScript implementation and usage examples; it does not instruct the agent to read files, access environment variables, call external endpoints, or exfiltrate data. The instructions stay within the caching scope.
Install Mechanism
No install specification or remote downloads are present (instruction-only), so nothing is written to disk or fetched automatically during install — this is the lowest-risk model.
Credentials
The skill declares no required environment variables, credentials, or config paths; nothing in the SKILL.md attempts to access secrets or unrelated environment state.
Persistence & Privilege
always is false and there is no request to modify agent/system-wide settings. The skill does not ask for persistent presence or special privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install smart-cache
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /smart-cache 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of Smart Cache: a high-performance caching utility. - Supports both LRU (Least Recently Used) and LFU (Least Frequently Used) eviction strategies. - Provides configurable maximum cache size and default TTL (time-to-live) for entries. - Includes methods to set, get, delete, and clear cached items, plus access statistics. - Usage examples and configuration options included.
元数据
Slug smart-cache
版本 1.0.0
许可证
累计安装 8
当前安装数 8
历史版本数 1
常见问题

Smart Cache 是什么?

Intelligent caching with LRU/LFU strategies and TTL management. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1084 次。

如何安装 Smart Cache?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install smart-cache」即可一键安装,无需额外配置。

Smart Cache 是免费的吗?

是的,Smart Cache 完全免费(开源免费),可自由下载、安装和使用。

Smart Cache 支持哪些平台?

Smart Cache 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Smart Cache?

由 raghulpasupathi(@raghulpasupathi)开发并维护,当前版本 v1.0.0。

💬 留言讨论