安装nuget包地址:https://www.nuget.org/packages/Microsoft.Extensions.Caching.StackExchangeRedis
官方文档:https://docs.microsoft.com/en-us/aspnet/core/performance/caching/distributed?view=aspnetcore-5.0
appsettings.json根节点:
注入redis
使用:
安装nuget包地址:https://www.nuget.org/packages/Microsoft.Extensions.Caching.StackExchangeRedis
官方文档:https://docs.microsoft.com/en-us/aspnet/core/performance/caching/distributed?view=aspnetcore-5.0
appsettings.json根节点:
注入redis
使用: