Configure the expiration on the cache