intelligent-cache
Provides strategies for efficient multi-layer caching to prevent stampedes and improve data retrieval speed.
Install
mkdir -p .claude/skills/intelligent-cache && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5639" && unzip -o skill.zip -d .claude/skills/intelligent-cache && rm skill.zipInstalls to .claude/skills/intelligent-cache
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Multi-layer caching with type-specific TTLs, get-or-generate pattern, memory and database layers, and graceful invalidation without cache stampede.Key capabilities
- →Implement multi-layer caching with memory and database storage
- →Apply type-specific TTLs for different content freshness
- →Execute get-or-generate patterns to prevent cache stampedes
- →Track generation time for performance optimization
- →Perform graceful cache invalidation and cleanup
How it works
The system uses a two-layer approach where data is first checked in memory, then in a database, and finally generated if missing. It uses type-specific TTLs to manage expiration and promotes database hits to memory for faster subsequent access.
Inputs & outputs
When to use intelligent-cache
- →Implementing memory-based caching
- →Configuring database-layer TTLs
- →Preventing cache stampede issues
About intelligent-cache
Manages caching layers using type-specific TTLs and a get-or-generate pattern. It includes mechanisms for graceful invalidation to ensure system stability under load.
Multi-layer caching with type-specific TTLs, get-or-generate pattern, memory and database layers, and graceful invalidation without cache stampede.
When not to use it
- →When data requires real-time consistency without any staleness
- →When the application lacks a persistent database layer for cache storage
Limitations
- →Requires manual cleanup of expired entries to prevent memory leaks
- →Dependent on a configured database for persistence
How it compares
It integrates generation timing and type-specific TTLs into a single get-or-generate function to avoid race conditions common in manual cache implementations.
Compared to similar skills
intelligent-cache side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| intelligent-cache (this skill) | 1 | 6mo | No flags | Intermediate |
| java-pro | 34 | 4mo | No flags | Advanced |
| bullmq-specialist | 25 | 6mo | No flags | Intermediate |
| golang-pro | 14 | 4mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by dadbodgeoff
View all by dadbodgeoff →You might also like
java-pro
sickn33
Master Java 21+ with modern features like virtual threads, pattern matching, and Spring Boot 3.x. Expert in the latest Java ecosystem including GraalVM, Project Loom, and cloud-native patterns. Use PROACTIVELY for Java development, microservices architecture, or performance optimization.
bullmq-specialist
davila7
BullMQ expert for Redis-backed job queues, background processing, and reliable async execution in Node.js/TypeScript applications. Use when: bullmq, bull queue, redis queue, background job, job queue.
golang-pro
sickn33
Master Go 1.21+ with modern patterns, advanced concurrency, performance optimization, and production-ready microservices. Expert in the latest Go ecosystem including generics, workspaces, and cutting-edge frameworks. Use PROACTIVELY for Go development, architecture design, or performance optimization.
go-concurrency-patterns
wshobson
Master Go concurrency with goroutines, channels, sync primitives, and context. Use when building concurrent Go applications, implementing worker pools, or debugging race conditions.
rust-async-patterns
wshobson
Master Rust async programming with Tokio, async traits, error handling, and concurrent patterns. Use when building async Rust applications, implementing concurrent systems, or debugging async code.
graphql
davila7
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.