Smart Cache
v1.0.0Intelligent caching with LRU/LFU strategies and TTL management
⭐ 1· 955·7 current·7 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
OpenClaw
Benign
high confidencePurpose & 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.
Assessment
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.Like a lobster shell, security has layers — review code before you run it.
latestvk972jz0ee5njy2xa78fhxb0jjh81h31x
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
