Delete.php 473 B

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