initial implementation of memcache