bolshakov / stoplight

:traffic_light: Traffic control for code.
http://bolshakov.github.io/stoplight/
MIT License
384 stars 40 forks source link

Fix deprecated uses of `Redis#pipelined` #150

Closed casperisfine closed 2 years ago

casperisfine commented 2 years ago

Context: https://github.com/redis/redis-rb/pull/1059

The following is deprecated

redis.pipelined do
  redis.get(key)
end

And should be rewritten as:

redis.pipelined do |pipeline|
  pipeline.get(key)
end

Functionally it makes no difference. This API is available since Redis 3.0.

bolshakov commented 2 years ago

Thank you for the contribution ❤️