Your OS already has a &#x27;file buffer cache&#x27; that keeps pages of read files in RAM and discards them only if the RAM is needed for something else.<p>I made a neat little application-accessible key-value cache that used these pages.  It means you can write keys that end up in your OS&#x27;s file buffer cache, and if the OS doesn&#x27;t need that RAM for anything else, you can read them back later.<p><a href="http:&#x2F;&#x2F;williamedwardscoder.tumblr.com&#x2F;post&#x2F;13363076806&#x2F;buffcacher" rel="nofollow">http:&#x2F;&#x2F;williamedwardscoder.tumblr.com&#x2F;post&#x2F;13363076806&#x2F;buffc...</a><p>Sadly not a mainstream thing :( ;)