diskcached

I want memcached, but rather than allocating memory, it stores it on disk.  This should be out there, I just haven’t seen it.

The use case would be for people with low-memory virtual machines who can benefit from caching, but do not have the memory to allocate to it.  I guess technically it would work by simply using regular memcached and taking the disk page hit if it happens - perhaps I just solved my problem.

I know there is memcachedb, but that keeps things around forever without expiring.  I think the housekeeping to expire keys is very difficult.  I prefer to prepend a sequence number to items and allow the cache expiring to get rid of keys that no are no longer needed.

The idea with diskcached would be that you could allocate gigabytes of disk space and have a very low memory footprint.  It would be orders of magnitude slower than real memcached, but if it’s faster than the time it takes to compute the data, then it’s worth it.

We love Tumblr. Theme (Innovate) by Thijs