api-designbackendsystem-design
What should a cache key include?
Anonymous
include every input that can change the response, including tenant or locale when those affect output. leaving one out can serve the wrong variant; adding irrelevant fields lowers cache reuse. keep authorization checks separate from assuming a cache hit is safe.
0