QamoosTech
Architecture & DesignScaling and performanceBeginner

Cache Hit and Miss

PronunciationKASH HIT and MIS

Definition

A cache hit means the requested data was found in the cache and served quickly. A cache miss means it wasn't, so the system must fetch it from the slower source. The hit ratio is the share of hits.

Where you hear it

In CDN and Redis dashboards, performance reviews, and discussions about whether caching is worth it.

Examples

  • Our hit ratio is 95%, so the database barely notices the traffic.
  • A cold cache means every request is a miss.
  • The first request is a miss and loads from the database; the next ones are hits.

Common mistake

Looking only at the hit ratio. A cache with a high ratio but stale data is still failing users.

Don't confuse with

A cache stampede, where many misses for the same key hit the database at once.

Say it at work

  • In a meeting or chatWhat's the cache hit ratio?
  • In an email or ticketMisses spike right after every deploy.