Accumulation summary-netcore reports errors when redis is injected

When netcore injects redis, an error is reported: Method'GetAsync' in type'Microsoft.Extensions.Caching.Redis.RedisCache' from assembly'Microsoft.E
Solution:
Microsoft.Extensions.Caching.redis encapsulates StackExchange.Redis, Nuget wraps Microsoft .Extensions.Caching.redis, you don’t need to install StackExchange.Redis
Install Microsoft.Extensions.Caching.redis
Insert picture description here
injection code:
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_41812784/article/details/112800477