Coding prompt

Add Redis Caching Layer

Cache-aside Redis caching with typed get/set helpers, TTL management, pattern-based invalidation, and monitoring.

Add a Redis caching layer to {{project_name}} for {{cache_targets}}.

## Cache Pattern: Cache-Aside (read-through on miss)

### Cache Client (lib/cache.ts)
```typescript…

The full prompt is free with an account.

Sign up free to read it

It has 3 blanks: {{project_name}}, {{cache_targets}} and {{key_prefix}}. In Loopy you fill them in a form and copy the finished prompt in one click.