Skip to content
cccskills
FreePublished on GitHub

caching-strategy

Multi-layer caching: HTTP, CDN, Redis, in-memory, browser. Invalidation, TTLs, stampede protection.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3 stars(GitHub 3 + cccskills 0)
Works withRedis

Run score Not tested

See how to install

Files included (5)

  • SKILL.md2.9 KB
  • references/http-headers.md348 B
  • references/patterns-and-invalidation.md1.1 KB
  • references/redis-and-client.md503 B
  • references/ttl-defaults.md323 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

caching-strategy — Multi-Layer Caching

Regla 0: antes de cachear, medí. Cachear sin profiling esconde problemas.

Cuándo usar / NO usar

UsarNO usar
Hot path lectura >> escrituraWrite-heavy con lectura impredecible
Query cara sin índices posiblesInfo financiera/regulatoria (staleness = daño legal)
Respuesta inmutable o slow-changingParche de query mal diseñada (arreglá la query)
Alivio DB bajo cargaPrematuramente (primero índices)

Capas

Browser/RN → CDN → API Gateway → App in-memory (LRU) → Redis → Database

Cada capa: TTL distinto, invalidation distinta. Más cerca del usuario = más caché pero más difícil invalidar.

Qué cachear dónde

DatoCache
Assets estáticos (JS, CSS, img)CDN + browser (immutable + versioned URLs)
API responses públicasCDN + Redis
API responses por-userRedis + cliente
Session/token, rate limit countersRedis
Traducciones / configIn-memory warm on boot
DB query resultadoRedis (cache-aside)

HTTP Caching Headers

→ Read references/http-headers.md for header values and ETag usage

Patterns, Invalidation & Stampede Protection

→ Read references/patterns-and-invalidation.md for cache-aside/write-through/read-through patterns, invalidation strategies, and stampede protection

TTL Defaults

→ Read references/ttl-defaults.md for recommended TTLs by data type

Redis & Client-Side

→ Read references/redis-and-client.md for Redis cluster config, key naming, and React/RN client caching

Anti-patterns

  • Cachear sin medir, TTL infinito sin invalidation, cachear PII sin no-store
  • Cachear errores (404/500), cache que falla → app cae (cache debe ser opcional)
  • KEYS * en Redis prod (usar SCAN), cache sin namespace, per-user en CDN sin Vary
  • Sin métricas de hit rate

Observabilidad

  • Métricas: cache_hits/misses_total, cache_latency_seconds, cache_evictions_total
  • Hit rate target: hot >90%, warm >70%. Hit rate <50% sostenido = cache no vale
  • Alertas: evictions creciente, latency p99 >10ms, hit rate cae súbitamente

Checklist

  • Profiling justifica el cache
  • Capa correcta elegida (browser/CDN/Redis/memoria)
  • TTL razonado con trade-off staleness vs carga
  • Invalidation strategy clara
  • Stampede protection si hot path
  • Cache opcional — app funciona si Redis down
  • Headers HTTP correctos (private para PII, Vary)
  • Key naming consistente + namespace
  • Métricas: hits/misses/latency/evictions
  • No cacheamos errores

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Plan, design, and implement A/B tests and experiments with statistical rigor. Covers hypothesis frameworks, sample sizing, metrics, and result analysis.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Web/mobile accessibility decision guide: WCAG 2.2 AA, ARIA, keyboard nav, focus management, contrast, testing. Use for: a11y, accessibility, wcag, aria, screen reader, keyboard, contrast.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Generate, iterate, and scale ad creative for paid advertising across Google, Meta, LinkedIn, and X. Covers platform specs, creative frameworks, and quality validation.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Musica interactiva para juegos: layering vertical, re-secuenciacion horizontal, stingers, reglas de transicion con sync points, y mapeo de estados de gameplay a musica. Usar para: musica adaptativa, sistema de musica dinamica, transiciones musicales, combat music.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Design multi-agent systems, create agent architectures, define communication patterns, and build autonomous agent workflows with structured evaluation frameworks.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Inter-agent communication protocol for C-suite agent teams. Defines invocation syntax, loop prevention, isolation rules, response formats, and quality loops.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

See all skills by SebastianLuser

Report a problem with this skill