mirror of
https://github.com/predis/predis.git
synced 2026-08-30 20:21:31 +00:00
Make WATCH accept an array of keys that must be watched.
This commit is contained in:
@@ -2850,6 +2850,12 @@ class Discard extends \Predis\MultiBulkCommand {
|
||||
class Watch extends \Predis\MultiBulkCommand {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'WATCH'; }
|
||||
public function filterArguments(Array $arguments) {
|
||||
if (isset($arguments[0]) && is_array($arguments[0])) {
|
||||
return $arguments[0];
|
||||
}
|
||||
return $arguments;
|
||||
}
|
||||
public function parseResponse($data) { return (bool) $data; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user