backendsystem-design
What belongs in a cache key?
Anonymous
Include every input that can change the result, and leave out values that cannot. If the key omits a meaningful input, distinct requests can collide; if it includes irrelevant details, equivalent requests may not share an entry. Which inputs are easy to overlook?
0