Interactive Caching Strategies

Visualize how different caching patterns work in real-time.

Cache-Aside

The application is responsible for managing the cache. It looks for an entry in the cache. If it's a miss, the application reads the data from the database and adds the data to the cache.

Controls

Application

Current Op: "key: "user2""

Cache

user1: "Alice"
item5: "Laptop"

Database

user1: "Alice"
user2: "Bob"
item5: "Laptop"
item10: "Mouse"

Operation Log