Skip to content

update microsoft's implementation to use new stackexchange.redis binaries. #2313

Closed

Description

@krishnasingh1818

hi,

we are using msft redis cache nuget and i noted its using very old copy of stackexchange.redis.
StackExchange team has made changes and bug fixes to its binary and currently at version 2.0.6 but msft implementation still using old copy.

my request is to update msft extension to use latest stackexchangeredis nugets to benefit from fixes done by stackexchange teams.

I tried to update msft cache to use latest stackexchange lib but started getting errors about some methods missing in newly published stackexchange libraries.

when can we get new version of msft redis cache library that uses latest version of stackexchange library ? pls advise.

thanks

Activity

  1. MisinformedDNA commented on Oct 3, 2019

    @MisinformedDNA

    Also, Microsoft.Extensions.Caching.Redis (currently 2.2.0) depends on StackExchange.Redis.StrongName, which hasn't had a release since 2017. The next version of "Microsoft.Extensions.Caching.Redis" should replace that dependency with StackExchange.Redis. (Which, BTW, is the same package that Microsoft's RedisSessionStateProvider and RedisOutputCacheProvider depend on.

  2. sk-pub commented on Nov 4, 2019

    @sk-pub

    Because of the reference to StackExchange.Redis.StrongName, it's impossible to use the package Microsoft.Extensions.Caching.Redis with the package Microsoft.AspNetCore.DataProtection.StackExchangeRedis — they use the class StackExchange.Redis.ConnectionMultiplexer from different assemblies.

  3. MisinformedDNA commented on Nov 4, 2019

    @MisinformedDNA

    @Pilchie Do you know if MS plans to tackle this in the near future? If we could get some kind of response from MS, maybe someone in the community could pick this up?

  4. analogrelay commented on Nov 5, 2019

    @analogrelay

    In order to support the new 2.x version of StackExchange.Redis we actually shipped brand new packages for all our Redis integrations in 2.2 and phased the old ones out in 3.0. See aspnet/Announcements#322 for some details here.

    You do need to change all your package references to the .StackExchangeRedis variant, otherwise you will get conflict issues like @unicrus observed. However, the APIs exposed by these packages remain almost exactly the same (instead of .AddRedisCache methods, you'll find .AddStackExchangeRedisCache methods, but otherwise the API is the same) so the upgrade should be straightforward.

    We used a new package because the move from 1.x to 2.x is a breaking change (as @krishnasingh1818 observed above). Not only because there are breaking API changes in the StackExchange.Redis package, but because the package ID changed from StackExchange.Redis.StrongName to StackExchange.Redis.

    Does this clear things up?

  5. MisinformedDNA commented on Nov 6, 2019

    @MisinformedDNA

    Awesome. Thanks. Is there a way that we could "redirect" users from Microsoft.Extensions.Caching.Redis to Microsoft.Extensions.Caching.StackExchangeRedis? Like updating the description or release notes?

  6. analogrelay commented on Nov 6, 2019

    @analogrelay
  7. analogrelay commented on Nov 6, 2019

    @analogrelay

    Though I don't think we'd want to deprecate them, since 2.1 is supported for a few more years.

    We could look at a description update to add a note like: "For .NET Core 3.0 apps, use NNN.StackExchangeRedis instead"

  8. krishnasingh1818 commented on Nov 7, 2019

    @krishnasingh1818
    Author

    In order to support the new 2.x version of StackExchange.Redis we actually shipped brand new packages for all our Redis integrations in 2.2 and phased the old ones out in 3.0. See aspnet/Announcements#322 for some details here.

    You do need to change all your package references to the .StackExchangeRedis variant, otherwise you will get conflict issues like @unicrus observed. However, the APIs exposed by these packages remain almost exactly the same (instead of .AddRedisCache methods, you'll find .AddStackExchangeRedisCache methods, but otherwise the API is the same) so the upgrade should be straightforward.

    We used a new package because the move from 1.x to 2.x is a breaking change (as @krishnasingh1818 observed above). Not only because there are breaking API changes in the StackExchange.Redis package, but because the package ID changed from StackExchange.Redis.StrongName to StackExchange.Redis.

    Does this clear things up?

    I updated the new nuget and its working great. lot of error logs related to cache taking more than a second (which we had put) is not showing up. thank you !

  9. analogrelay commented on Nov 7, 2019

    @analogrelay

    Closing as it sounds like the version confusion is cleared up.

    lot of error logs related to cache taking more than a second (which we had put) is not showing up.

    @krishnasingh1818 if you're seeing an issue with the new package, please file a new bug for that.

  10. ghost locked as resolved and limited conversation to collaborators on Dec 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions