Files
predis/lib/Predis/Commands/Delete.php
T

24 lines
469 B
PHP

<?php
namespace Predis\Commands;
use Predis\Utils;
class Delete extends Command {
public function getId() {
return 'DEL';
}
public function filterArguments(Array $arguments) {
return Utils::filterArrayArguments($arguments);
}
protected function canBeHashed() {
$args = $this->getArguments();
if (count($args) === 1) {
return true;
}
return $this->checkSameHashForKeys($args);
}
}