Promptles
Multi-Step

Specify Cache Strategy

When adding caching, describe the complete strategy: what gets cached, for how long, what triggers invalidation, and where the cache logic lives. Saying 'add caching' leaves Claude guessing about TTL, cache keys, and invalidation rules.

Where you'll practice this

One Promptles scenario teaches this principle directly.

  • The Cache Layer

    Your Express API has a `api/products.ts` route file with GET, POST, PUT, and DELETE handlers for a products resource. The GET `/api/products` endpoint is hit frequently and queries the database every time, causing slow response times under load. You want to add a Redis caching…

Other principles in Multi-Step