Cache class based on PHP Memcache