Fix lifetime calculation in Memcache and Memcached drivers.