Application Caching
Last updated
What is Application Caching?
In-memory caches such as Memcached and Redis are key-value stores between your application and your data storage. Since the data is held in RAM, it is much faster than typical databases where data is stored on disk. RAM is more limited than disk, so cache invalidation algorithms such as least recently used (LRU) can help invalidate 'cold' entries and keep 'hot' data in RAM.
Redis has the following additional features:
- Persistence option
- Built-in data structures such as sorted sets and lists
Generally, you should try to avoid file-based caching, as it makes cloning and auto-scaling more difficult.
Free resources to learn Application Caching
- Open sourceIntro to Application Caching
More in stage 17: Performance Antipatterns
Application Caching: common questions
Can I learn Application Caching in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Application Caching in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Application Caching tutorial for beginners?
It is lesson 67 of 147 in the free System Design roadmap, in stage 17, Performance Antipatterns. If you are new to System Design, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.