Created
October 14, 2020 12:33
-
-
Save umayeras/a9ca0b709932a1ac06f3307aa565e2a8 to your computer and use it in GitHub Desktop.
This file contains 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 void ConfigureServices(IServiceCollection services) | |
{ | |
var settings = configuration.GetSection(SectionNames.RedisSettings).Get<RedisSettings>(); | |
services.AddDistributedRedisCache(option => | |
{ | |
option.Configuration = settings.Uri; | |
option.InstanceName = settings.Instance; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment