Nature, Benefits and Drawbacks of Caching (OCR A-Level Computer Science): Flashcards
📚Flashcards
Practise the cards
13 cards from this deck
ShowHide
Practise the cards
13 cards from this deck
Define caching
Define caching
Storing frequently accessed data in temporary storage for faster retrieval
Purpose of caching
Purpose of caching
Reduce access time & improve performance
Cache hit
Cache hit
Data found in cache
Cache miss
Cache miss
Data not in cache
Memory cache
Memory cache
Stores frequently accessed data in RAM
Web cache
Web cache
Stores web pages/resources to reduce load times
Disk cache
Disk cache
Stores data on faster disk like SSD
Key benefit of caching
Key benefit of caching
Faster data retrieval & reduced latency
How caching reduces costs
How caching reduces costs
Lowers operational costs like DB queries & bandwidth
Cache inconsistency issue
Cache inconsistency issue
Cached data becomes stale if original data changes
Drawback: memory usage
Drawback: memory usage
Caching consumes additional memory/storage
Cache invalidation
Cache invalidation
Updating or removing outdated data from cache
LRU strategy
LRU strategy
Least Recently Used - evicts old/less accessed data
