Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No exists? method #172

Closed
aglushkov opened this issue Jun 30, 2020 · 4 comments
Closed

No exists? method #172

aglushkov opened this issue Jun 30, 2020 · 4 comments

Comments

@aglushkov
Copy link

Redis 4.2 warns :

  • Redis#exists(key) will return an Integer in redis-rb 4.3. exists? returns a boolean, you should use it instead. To opt-in to the new behavior now you can set Redis.exists_returns_integer = true. To disable this message and keep the current (boolean) behaviour of 'exists' you can set Redis.exists_returns_integer = false, but this option will be removed in 5.0

But changing exists to exists? shows redis-namespace error

  • Passing 'exists?' command to redis as is; blind passthrough has been deprecated and will be removed in redis-namespace 2.0
@mperham
Copy link

mperham commented Jul 6, 2020

Dupe of #171

@rafaelfranca
Copy link
Member

#171 was merged. I'm going to release a new version soon

@virusman
Copy link

I'm still seeing this deprecation warning when usingredis-namespace 1.8.0.

@reedstonefood
Copy link

Also still happening in 1.8.1. @rafaelfranca WDYT?

Redis#exists(key) will return an Integer in redis-rb 4.3, if you want to keep the old behavior, use exists? instead. To opt-in to the new behavior now you can set Redis.exists_returns_integer = true. (/Users/reedstonefood/.gem/ruby/2.7.5/gems/redis-namespace-1.8.1/lib/redis/namespace.rb:476:in `call_with_namespace')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants