Fix correct usage of ttl in ArrayCache.