Basic memcached implementation