Skip to content

Commit

Permalink
Clients\Redis: added acquire() for WATCH
Browse files Browse the repository at this point in the history
  • Loading branch information
kakserpom committed Apr 12, 2016
1 parent f8abda0 commit 16f2234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PHPDaemon/Clients/Redis/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public function __call($cmd, $args) {
* @return void
*/
public function command($name, $args, $cb = null) {
if ($name === 'MULTI') {
if ($name === 'MULTI' || $name === 'WATCH') {
$this->acquire();
}
// PUB/SUB handling
Expand Down

0 comments on commit 16f2234

Please sign in to comment.