You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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')
@olliebennett the ideal solution would be to update the code calling these methods, and then update your Redis gem version.
The problem is that because redis-namespace is an abstraction on top of the redis-rb gem, the deprecation notices are raised indicating redis-namespace is responsible, but its just the messenger/man-in-the-middle (i.e. the call would be your_code -> redis-namespace -> redis-rb so the original call would be from your_code but redis-rb which is raising the deprecation notice, as it sees redis-namespace as the caller, not your code).
Try replacing the redis-namespace instance with a normal Redis client and re-run your tests and it should show you what in your code (or other deps) is calling the deprecated methods.
Redis
(4.8.1)
is raising the following exception;Related PRs:
To avoid noisy deprecation messages for now, I'm using the following (in
config/initializers/redis.rb
for a Rails app);Happy to test if anyone's able to propose a fix 🙏 Thanks a lot
The text was updated successfully, but these errors were encountered: