* Add a compatibility layer for `redis-client`
As discussed in https://github.com/mperham/sidekiq/pull/5253
Switching entirely to redis-client is deemed risky, so instead
we can support both.
All is needed is a small translation layer, and some very minimal
adjustments in the callers.
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
Co-authored-by: Mike Perham <mperham@gmail.com>
Context: https://github.com/redis/redis-rb/pull/1059
The following is deprecated
```ruby
redis.pipelined do
redis.get(key)
end
```
And should be rewritten as:
```ruby
redis.pipelined do |pipeline|
pipeline.get(key)
end
```
Functionally it makes no difference.
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>