System Design · Concept
Cache
A cache stores recent query results so repeated requests can return quickly without repeating expensive backend work. An LRU policy removes the least recently used entry when the cache is full.
Last updated
Syntax
get(query) -> result | None
set(query, results)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
cache-asidetime to live (TTL)Memory CacheRedisMemcachedconsistent hashingLoad BalancerQuery API server