loom-caching
Installation
SKILL.md
Caching
Overview
Caching improves application performance by storing frequently accessed data closer to the consumer. This skill covers cache strategies (aside, through, behind), invalidation patterns, TTL management, Redis/Memcached usage, stampede prevention, and distributed caching.
Instructions
1. Cache Strategies
Cache-Aside (Lazy Loading)
from typing import TypeVar, Optional, Callable
import json
T = TypeVar('T')