Files
predis/lib/Predis/Commands/KeyDelete.php
T
2011-04-25 12:39:21 +02:00

24 lines
476 B
PHP

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