Created
August 29, 2019 22:04
-
-
Save ntakouris/45a32b0978d319208a9d79b823704b00 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (executedContext.Result is OkObjectResult okObjectResult) | |
{ | |
await cacheService.CacheResponseAsync(cacheKey, okObjectResult.Value, TimeSpan.FromSeconds(_timeToLiveSeconds)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment