Get the latest tech news
Caching is an abstraction, not an optimization
I've always been told that caching is a tool to make software faster. That, given some careful considerations to consistency, caching makes it so that when...
As an existence proof, if you look at the systems, databases, which have to carefully manage the dance between memory and disk, you'll find they work this way. The way OS disk access works is that any data you read first gets pulled into the page cache (unless you're using direct IO). Caching is in fact, such a good abstraction, that it merits this kind of arcane study to make it function better in practice.
Or read this on Hacker News