Set an expiration for cache entries