mirror of
https://github.com/predis/predis.git
synced 2026-08-24 07:19:35 +00:00
24 lines
476 B
PHP
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);
|
|
}
|
|
}
|