Set the expiration time on entity caching.