mirror of
https://github.com/predis/predis.git
synced 2026-08-26 07:29:55 +00:00
18 lines
458 B
PHP
18 lines
458 B
PHP
<?php
|
|
|
|
namespace Predis\Commands;
|
|
|
|
use Predis\Command;
|
|
|
|
class Watch extends Command {
|
|
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; }
|
|
}
|