Created
August 29, 2019 22:00
-
-
Save ntakouris/e13e0d81dc7da3d84a74ee3a3bd110f3 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
public async Task<string> GetCachedResponseAsync(string cacheKey) | |
{ | |
var cachedResponse = await _distributedCache.GetStringAsync(cacheKey); | |
return string.IsNullOrEmpty(cachedResponse) ? null : cachedResponse; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment