We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fb64bd commit 674541cCopy full SHA for 674541c
CHANGELOG.md
@@ -1,5 +1,6 @@
1
# Unreleased
2
3
+* Add `Redis#with` for better compatibility with `connection_pool` usage.
4
* Fix the block form of `multi` called inside `pipelined`. Previously the `MUTLI/EXEC` wouldn't be sent. See #1073.
5
6
# 4.6.0
lib/redis.rb
@@ -111,6 +111,10 @@ def close
111
end
112
alias disconnect! close
113
114
+ def with
115
+ yield self
116
+ end
117
+
118
# @deprecated Queues a command for pipelining.
119
#
120
# Commands in the queue are executed with the Redis#commit method.
0 commit comments