File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed
Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change 11# ServiceStackRedisCache
22
3- Distributed cache implementation of Microsoft.Extensions.Caching.Distributed.IDistributedCache using ServiceStack.Redis.Core.
3+ Distributed cache implementation of Microsoft.Extensions.Caching.Distributed.IDistributedCache using ServiceStack.Redis.
44
55### Install Package
6- https://www.nuget.org/packages/ServiceStackRedisCache
6+ https://www.nuget.org/packages/ServiceStackRedisCache or https://www.nuget.org/packages/Microsoft.Extensions.Caching.ServiceStackRedis
77
88### Configure
99
@@ -12,17 +12,7 @@ Startup.cs
1212``` cs
1313public void ConfigureServices (IServiceCollection services )
1414{
15- services .AddDistributedServiceStackRedisCache (options =>
16- {
17- Configuration .GetSection (" redis" ).Bind (options );
18- // Workaround for deadlock when resolving host name
19- IPAddress ip ;
20- if (! IPAddress .TryParse (options .Host , out ip ))
21- {
22- options .Host = Dns .GetHostAddressesAsync (options .Host )
23- .Result .FirstOrDefault (a => a .AddressFamily == AddressFamily .InterNetwork ).ToString ();
24- }
25- });
15+ services .AddDistributedServiceStackRedisCache (" redis" );
2616}
2717```
2818appsettings.json
You can’t perform that action at this time.
0 commit comments