discover-caching

Automatically discover caching and performance skills for caching-related development tasks.

126|7|Updated Oct 18, 2025
One-click install
npx skills add https://github.com/rand/cc-experiments --skill discover-caching
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: discover-caching
Source: https://github.com/rand/cc-experiments/tree/main/skills/discover-caching
Command: npx skills add https://github.com/rand/cc-experiments --skill discover-caching

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Optimizing application performance through effective caching can be intricate, involving various layers and invalidation strategies. This skill provides instant access to expertise on caching fundamentals, Redis patterns, CDN/edge caching, HTTP caching, and Service Worker caching, ensuring faster user experiences.

Core Features & Use Cases

  • Comprehensive Caching: Covers caching fundamentals, cache invalidation strategies, Redis caching patterns, CDN/edge caching, HTTP caching, Service Worker caching, and performance monitoring.
  • Intelligent Activation: Automatically loads when you're engaged in caching development tasks, providing context-aware guidance.
  • Use Case: When trying to reduce database load and improve response times, this skill can guide you through implementing Redis caching for frequently accessed data and configuring HTTP caching headers.

Quick Start

Explain different cache invalidation strategies and when to use each one.

Frequently Asked Questions about discover-caching

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce database load and improve response times with caching?

Caching stores frequently accessed data in fast storage layers like Redis or memory, bypassing slower database queries. Implement Redis caching for hot data and configure HTTP caching headers to serve content from edge nodes or browsers, cutting database load and response latency significantly.

What are the different cache invalidation strategies and when should I use each?

Cache invalidation strategies include TTL-based expiration, event-driven purging, and dependency tracking. Use TTL for data that tolerates brief staleness, event-driven invalidation for critical updates, and dependency tracking for complex relationships. Choose based on data freshness requirements and consistency guarantees your application needs.

How do HTTP caching headers work to improve performance?

HTTP caching headers like Cache-Control, ETag, and Last-Modified instruct browsers and CDNs how long to store responses. Set Cache-Control with max-age for static assets, use ETags for validation, and leverage CDN edge caching to serve content geographically closer, reducing server load and latency.

Can I use Service Workers to cache content for offline access?

Service Workers intercept network requests and cache responses locally in the browser, enabling offline functionality and faster repeat visits. Pair with HTTP caching and CDN strategies to create a multi-layer caching architecture that improves performance across network conditions.

What's the best approach to caching frequently accessed data in Redis?

Redis caching patterns include cache-aside, write-through, and write-behind strategies. Use cache-aside for read-heavy workloads with lazy loading, write-through for strong consistency, and write-behind for write-heavy scenarios. Combine with TTL expiration and invalidation logic to maintain data freshness.