asp.net - Not getting StackExchangeRedisCacheClient class in new nuget library under PackageStackExchange.Redis.Extensions.Core

admin2025-04-30  1

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?

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?

Share Improve this question edited Jan 5 at 8:13 marc_s 757k184 gold badges1.4k silver badges1.5k bronze badges asked Jan 4 at 21:38 Surendra SinghSurendra Singh 2992 silver badges7 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 0

According to this question StackExchangeRedisCacheClient was obsolete 5 years ago and it was removed, use RedisCacheClient instead

But during migration to ASP.NET Core 8, we're not able to get this class from this Nuget package:

StackExchange.Redis.Extensions.Core

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.

转载请注明原文地址:http://anycun.com/QandA/1746026565a91528.html