Repository navigation
support redis-rb 4.0.0 - #136
Conversation
68dc0eb to
73256d2
Compare
73256d2 to
0369c2d
Compare
|
@fw42 |
fw42
left a comment
There was a problem hiding this comment.
Two small comments but looks almost good to me
| @deprecations = !!options.fetch(:deprecations) do | ||
| ENV['REDIS_NAMESPACE_DEPRECATIONS'] | ||
| end | ||
| @is_client_respond = @redis.respond_to?(:_client) |
There was a problem hiding this comment.
I'd call this something like @has_new_client_method or @responds_to_new_client_method... or maybe just @new_client_method.
| def client | ||
| @redis.client | ||
| warn("The `client` method broken changed by redis-rb 4.0.0, so we should use `_client` method." + | ||
| "`client` method in redis-namespace will remove 2.0 (at #{call_site})") if @is_client_respond |
There was a problem hiding this comment.
I'd say something like
The
clientmethod is deprecated as of redis-rb 4.0.0, please use the new_clientmethod instead. Support for the old method will be removed in redis-namespace 2.0.
|
Fixed! |
|
Thanks! |
|
resque-scheduler support for redis-rb 4.0 (resque/resque-scheduler#620) is pending a gem release it can depend on. |
* Loosen Redis version dep to `>= 3.3.5, < 5` * Bump redis-namespace for looser Redis version dep. Pending resque/redis-namespace#136 gem release. Use `redis.connection` where we can and fall back to `redis._client` where we need (to inspect timeout and scheme). References sidekiq#3617
* Loosen Redis version dep to `>= 3.3.5, < 5` * Bump redis-namespace for looser Redis version dep. Pending resque/redis-namespace#136 gem release. Use `redis.connection` where we can and fall back to `redis._client` where we need (to inspect timeout and scheme). References sidekiq#3617
* Loosen Redis version dep to `>= 3.3.5, < 5` * Bump redis-namespace for looser Redis version dep. Pending resque/redis-namespace#136 gem release. Use `redis.connection` where we can and fall back to `redis._client` where we need (to inspect timeout and scheme). References #3617
|
Could you release a new gem version with Redis v4 support? 😸 Thanks! |
|
@fw42 |
| s.files += Dir.glob("spec/**/*") | ||
|
|
||
| s.add_dependency "redis", "~> 3.0", ">= 3.0.4" | ||
| s.add_dependency "redis", ">= 3.0.4" |
|
1.6.0 was released |
The redis-rb 4.0.0 remove [] and []= method alias.
So we must use get/set method.
And
clientmethod was broken changed.redis/redis-rb@3138507
We must use the
_clientmethod for same behavier.redis/redis-rb@c239abb
But if we remove
clientmethod, it's broken changes, so I aliasclientmethod to_client.The user can be used redis-naespace 1.x with both redis-3.x and redis-4.x and can be gradually update.