cache-redis
Skill by xiaonuobase
Documents cache usage rules for the Snowy framework, covering CommonCacheOperator, RedissonClient, cache key constants and data change events. Intended for developers who read or write cache code in Snowy projects, including those who need distributed locks or native Redis structures.
Install cache-redis
Built from the published package, never by AI.
git clone --depth 1 https://github.com/xiaonuobase/Snowy /tmp/Snowy && mkdir -p ~/.claude/skills && cp -r /tmp/Snowy/.claude/skills/cache-redis ~/.claude/skills/cache-redisRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/xiaonuobase/Snowy /tmp/Snowy && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Snowy/.claude/skills/cache-redis ~/.gemini/antigravity-cli/skills/cache-redisAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
cache-redis is a usage guide for caching in the Snowy framework. It describes the CommonCacheOperator wrapper around Redisson buckets, with key prefixes applied automatically, and the RedissonClient for distributed locks and native Redis structures. It also covers the CacheConstant key list, the data change event center that tells plugins to refresh their caches, and separate alone-redis configuration used by Sa-Token.
The guide sets conventions for developers working in Snowy. It lists the Redis connection (127.0.0.1:6379, database 1), key naming with lowercase colon-separated layers, rules for setting expiry, and common mistakes to avoid, such as using StringRedisTemplate, which the project does not wire up. It also includes a checklist for reviewing cache changes. It is aimed at backend developers who read or write cache code in Snowy projects.
Written from the project's SKILL.md and checked against it.
What it can do
- CommonCacheOperatorStores, reads, removes and batch-removes business cache values, with optional expiry in seconds.
- RedissonClient locksProvides distributed locks with tryLock and a finally block that checks the lock holder before unlocking.
- Native Redis structuresGives access to Redisson maps and atomic counters such as RAtomicLong.
- Cache key conventionsDefines lowercase colon-separated key naming and avoids prefixes reserved by CacheConstant.
- Data change eventsBroadcasts add, update and delete events through CommonDataChangeEventCenter so listeners refresh their caches.
- Cache review checklistLists checks for key naming, expiry, event publishing and lock release before a cache change ships.
What you need
- Snowy framework project with Java sources
- Redis server running at 127.0.0.1:6379 on database 1
Try asking
- Cache the supplier count with CommonCacheOperator for 60 seconds
- Add a Redisson distributed lock around this order update
- Send a data change event after updating the dictionary table
Good to know
- The project has no StringRedisTemplate wiring, so it should not be used.
- Login user and permission caches are managed by the framework and should not be changed by business code.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/cache-redis/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to cache-redis
All alternatives →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
cache-redis: common questions
Does this need a local Redis server?
The checklist expects Redis running at 127.0.0.1:6379 on database 1. The connection is set in the spring.data.redis section of application.properties.
Which tool should I use for simple key-value caching?
The guide recommends CommonCacheOperator for ordinary business key-value caches, with an expiry in seconds where needed. Counters, locks and rate limiting use RedissonClient instead.
When should a data change event be sent?
The guide says to send one after changing shared data such as dictionaries, configuration or resources. Without it, other nodes or modules may read stale cache.
How do I install cache-redis?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cache-redis free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is cache-redis safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality A. 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-redis?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
