api-designbackendsystem-design
What should a cache key include?
Anonymous
A cache key should include every input that can change the response: path, query parameters, tenant, and relevant permission or locale state. Leaving one out can serve data under the wrong context. Keep key construction in one place and test pairs of requests that should map to different entries.
0