Created
August 29, 2019 22:03
-
-
Save ntakouris/9bcd454e581831fcb820c76f7b09fbd5 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
var cacheSettings = context.HttpContext.RequestServices.GetRequiredService<RedisCacheSettings>(); | |
if (!cacheSettings.Enabled) | |
{ | |
await next(); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment