simple memcached implementation