mirror of
https://github.com/predis/predis.git
synced 2026-08-21 02:31:51 +00:00
16 lines
430 B
PHP
16 lines
430 B
PHP
<?php
|
|
|
|
namespace Predis\Commands;
|
|
|
|
class Watch extends Command {
|
|
public function canBeHashed() { return false; }
|
|
public function getId() { 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; }
|
|
}
|