In ASP.NET on .NET 4.6.2, we have the class StackExchangeRedisCacheClient
in the nuget package StackExchange.Redis.Extensions.Core
.
Now we’re migrating the project to ASP.NET Core, but not getting the correct nuget package for this class.
This is the code in ASP.NET on .NET 4.6.2:
var cacheClient = new StackExchangeRedisCacheClient(RedisConnection, serializer);
But during migration to ASP.NET Core 8, we’re not able to get this class from this Nuget package:
StackExchange.Redis.Extensions.Core
What should we do in this situation?
2
Answers
According to this question StackExchangeRedisCacheClient was obsolete 5 years ago and it was removed, use RedisCacheClient instead
From the StackExchange.Redis.Extensions Readme, we can see:
The library is signed and completely compatible with the .NET Standard 2.0, .NET Framework 4.6.1, .NET Framework 4.7.2, .NET Core 3.x, .NET 5.0, .NET 6.0
And, from these issues: Please upgrade to .net9 and Bump to .NET8, this library might not completely compatible with .NET 8.0.
So, I suggest you could consider creating a .NET Standard class library to use this package and then add reference in .NET 8 application.
Besides, you could also post your question on StackExchange.Redis.Extensions forum, and ask for help from the library owner.