We keep the things we use around us, in reach, in all sorts of situations. Stuff on the desk at work, stuff on the coffee-table in the living room, on the drawers in the bathroom, in the garage, etc…
One day, while sorting and storing things around the house, a thought emerged, we should manage these items like a caching mechanism!
Cache, as described in Wikipedia, is:
a component that transparently stores data so that future requests for that data can be served faster
For example, when a blog post is opened, the system does not read it from database the data per every request, but it caches and retrieves it in an instant, from the RAM memory. Or another example, instead of going to the basement for your favorite wine, keep one in the fridge.
How can we apply this kind of thinking around the house? Let’s see the characteristics of a cache:
Cache size: imagine your most accessible...