fix the memcache adapter