Skip to content

Redis#srem will always return an Integer in Redis 5.0.0. Use Redis#srem? instead. #222

@olliebennett

Description

@olliebennett

Redis (4.8.1) is raising the following exception;

Redis#srem will always return an Integer in Redis 5.0.0. Use Redis#srem? instead.(called from: /app/vendor/bundle/ruby/3.2.0/gems/redis-namespace-1.10.0/lib/redis/namespace.rb:558:in `wrapped_send')

Related PRs:


To avoid noisy deprecation messages for now, I'm using the following (in config/initializers/redis.rb for a Rails app);

Redis.silence_deprecations = true

Happy to test if anyone's able to propose a fix 🙏 Thanks a lot

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