Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

cache-framework

Skill by Rain-kl

Guides Wavelet project developers on the standard three-layer cache: local RAM, then Redis, then PostgreSQL. It covers cache reads, write-through, invalidation, and multi-node pub/sub sync. It is written for contributors who change cached business data.

  • Score 75
  • 304 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install cache-framework

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Rain-kl/OpenFlare /tmp/OpenFlare && mkdir -p ~/.claude/skills && cp -r /tmp/OpenFlare/.agents/skills/cache-framework ~/.claude/skills/cache-framework

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install cache-framework in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

cache-framework is an agent skill written for the Wavelet project. It describes the standard read path, which checks local RAM first, then Redis, then PostgreSQL as the single source of truth. It also explains write-through population, a three-step invalidation process (local RAM, Redis, and pub/sub broadcast), and how other nodes clear their RAM when a message arrives.

The skill includes a reference implementation, code templates for read paths and pub/sub listeners, a table of existing cache modules, and a checklist for new caches. It lists forbidden patterns and related skills for database migration, async tasks and uploads. It is meant for developers who add or change cached data in Wavelet, handle invalidation, or decide whether frequent reads should be cached.

Written from the project's SKILL.md and checked against it.

What it can do

  • Three-layer read pathDescribes the RAM, Redis, then PostgreSQL read order and gives a code template for it.
  • Write-through populateExplains when to write cache values back to RAM and Redis after a DB load or create.
  • Distributed invalidationCovers clearing local RAM, deleting Redis keys, and broadcasting RAM invalidation over pub/sub.
  • pub/sub listener templateShows how to start a lazy, sync.Once-guarded listener that clears RAM on other nodes.
  • New cache workflowSteps for deciding whether to cache, choosing RAM and Redis layers, naming keys and testing.
  • Existing cache referenceTable of current cache modules in the project with their layers and pub/sub channels.
  • Change hook checklistLists the code paths that must call invalidation, including workers and scheduled tasks.
  • Forbidden patternsLists anti-patterns such as custom map-based RAM caches and unprefixed Redis keys.

What you need

  • Go toolchain (commands use go test)
  • make for the make code-check target
  • Access to the Wavelet project repository
  • Redis and PostgreSQL as used by the Wavelet project

Try asking

  • Add a Redis and RAM cache to this new config lookup with invalidation.
  • Check whether this frequently read endpoint should use the cache framework.
  • Review my cache invalidation so other nodes clear their RAM via pub/sub.

Good to know

  • Written specifically for the Wavelet project, not as a general library.
  • The OAuth user and token cache has no pub/sub and is noted as historical debt.
  • The push channel cache uses Redis only, with no local RAM layer.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/cache-framework/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to cache-framework

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

cache-framework: common questions

What is the cache read order in Wavelet?

The standard read path is local RAM first, then Redis, then PostgreSQL. The source says it is not database first.

Why does invalidation need pub/sub?

Other nodes keep their own local RAM, so a write node must broadcast a message that tells them to clear it. The source marks this as required for multi-instance deployments.

Which RAM library should new caches use?

The skill says to prefer pkg/cache/ram with MustNew and to avoid a custom map plus mutex with TTL unless it is documented.

How do I install cache-framework?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is cache-framework free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is cache-framework safe to use?

It scores 75 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to cache-framework?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

cache-framework Install

Add to stack

Loading.