class for memcache