Interview concept

What is caching?

Caching keeps copies of frequently accessed data in a faster layer, reducing latency and load on the underlying store. Effective caching balances freshness against hit rate.

Interview concept

How it works

Where caches live

Caches sit in the client, CDN, application memory, or a shared store like Redis.

Invalidation

Strategies include time-to-live expiry, write-through, and write-back, each trading freshness for performance.

Eviction

Policies like LRU and LFU decide what to drop when the cache is full.

Interview concept

Responsible use

Use any live AI assistant only where interview, workplace, school, and platform rules allow it. Do not use generated answers to misrepresent your skills, experience, or authorship.

FAQ

Common questions.

What are common cache invalidation strategies?

Time-to-live expiry, write-through, write-back, and explicit invalidation each balance freshness and performance.

What is a cache eviction policy?

It decides which entries to remove when full; LRU and LFU are common choices.