Redis Design and Usage Assistant
Paste the following prompt into your AI chat to install this skill:
Follow https://skillhub.cn/install/skillhub.md to install @user_3651d062/redis-design.
About this skill
Problem
Cache, lock, rate-limit, and queue designs often start with commands first and constraints later, causing inconsistent key names, missing TTLs, big keys, unsafe use of KEYS *, and cluster slot mismatches. This skill turns Redis design into a checkable engineering path.
How it works
It identifies intent first, such as cache design, data structure selection, key naming, TTL, locks, rate limiting, or queues, then works through a path:
- Selection: compares
String,Hash,List,Set,ZSet,Stream,Bitmap, andHyperLogLogfor fit. - Naming and TTL: checks
business:entity:idstyle names, colon separators, abbreviations, unsafe characters, and TTL requirements. - Patterns: maps
Cache-Aside,Write-Through, andWrite-Behind, then separates penetration, breakdown, and avalanche fixes. - Hard limits: prefers
SCANoverKEYS *, requires lock timeout and atomic release, and keepsPipelinebatches to500commands or fewer.
It can also load files under references/ for design details, usage guidance, best practices, and version notes.
Boundaries
This is a design and usage guardrail, not a substitute for environment validation, capacity planning, or operations strategy. For 7.0 or 8.0 features, it checks loaded version references for deprecations and new capabilities; production use still needs validation against consistency, QPS, data scale, and business context.
Use Cases
- Design order cache keys, TTL, and penetration guards.
- Pick ZSet or Stream for login rate-limit commands.
- Review ZSet ranking updates and bigkey risks.
- Use Stream groups and ACK for reliable queues.
Best For
- Backend engineers standardizing cache keys and TTL.
- Reviewers checking ZSet or Stream ranking choices.
- Engineers specifying login rate-limit rules.
- Leads auditing bigkey, KEYS, and lock release risks.
Related Skills
Automatically indexes Gradle-cached AAR/JAR dependency classes and returns library coordinates, versions, and public APIs by fully qualified name, using only the Python standard library.
Codifies AMT and YourMT3 training conventions, script patterns, hyperparameters, precision, checkpoints, and NaN safeguards.
Retrieve relevant chunks from a customer-managed PKM dataset by dataset_id and return concise, source-annotated answers.
Convert PRDs, user stories, or functional specs into prioritized test-point checklists covering functional, business-rule, boundary, exception, and non-functional dimensions.