Delete.php 455 B

12345678910111213141516171819
  1. <?php
  2. namespace Predis\Commands;
  3. use Predis\Utils;
  4. class Delete extends Command {
  5. protected function canBeHashed() {
  6. $args = $this->getArguments();
  7. if (count($args) === 1) {
  8. return true;
  9. }
  10. return $this->checkSameHashForKeys($args);
  11. }
  12. public function getId() { return 'DEL'; }
  13. public function filterArguments(Array $arguments) {
  14. return Utils::filterArrayArguments($arguments);
  15. }
  16. }