Skip to content

Commit 16f2234

Browse files
committed
Clients\Redis: added acquire() for WATCH
1 parent f8abda0 commit 16f2234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PHPDaemon/Clients/Redis/Connection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public function __call($cmd, $args) {
344344
* @return void
345345
*/
346346
public function command($name, $args, $cb = null) {
347-
if ($name === 'MULTI') {
347+
if ($name === 'MULTI' || $name === 'WATCH') {
348348
$this->acquire();
349349
}
350350
// PUB/SUB handling

0 commit comments

Comments
 (0)