A naive attempt at replicating some of memcached's functionality