Caching: Basics

video locked
Enroll to watch

11 mins

Benefits of a cache:

  1. Saves network calls

  2. Avoids repeated computations

  3. Reduces DB load

Drawbacks of a cache:

  1. Can be expensive

  2. Potential thrashing

Cache Policies:

  1. LRU

  2. LFU