hard20 pts · first answer countshash-mapcachingsystem-design
Same request, two cache entries
An API response cache uses the raw query string as the key. Requests ?city=dubai&page=2 and ?page=2&city=dubai miss each other. What is the fix?
Discussion 0
Join free to post in the discussion.
Related questions
- Redis TTL after SET with EXBackend Developer
- What a 92% cache hit ratio meansBackend Developer
- Which key an LRU cache evictsBackend Developer
- Why cache entries have a TTLBackend Developer
- Arabic text shown to English usersBackend Developer
- What a write-through cache doesBackend Developer
- Slow responses after a cache restartBackend Developer
- Average cost of a hash map lookupBackend Developer