Fix lifetime for memcached