Adding default ttl when creating cache.