Hacker News new | ask | show | jobs
by willvarfar 3696 days ago
Your OS already has a 'file buffer cache' that keeps pages of read files in RAM and discards them only if the RAM is needed for something else.

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's file buffer cache, and if the OS doesn't need that RAM for anything else, you can read them back later.

http://williamedwardscoder.tumblr.com/post/13363076806/buffc...

Sadly not a mainstream thing :( ;)