Memcached integration fixes