Caching Basics Framework caches Clear with the corresponding commands when needed in deployments. Values and queries - Choose TTLs based on freshness requirements - Invalidate explicitly on writes when correctness matters Patterns and Strategies - Use stable, namespaced keys; include any scoping dimension - Prefer to prevent thundering herds - Use cache tags (if supported) to invalidate related entries together - Avoid caching highly dynamic or user-specific data without a plan - Document invalidation triggers next to cached code ---