mirror of
https://github.com/predis/predis.git
synced 2026-08-28 19:21:22 +00:00
ee7104d2e5
This new method acts exactly like "getClientFor()" by returning a new client instance for the specified node unless a callback is passed as the second argument, in this case the callback is invoked and the new client instance is passed to it. The value returned by the callback is used as the return value of the "on()" method.