ListPopFirstBlocking.php 321 B

123456789101112131415
  1. <?php
  2. namespace Predis\Commands;
  3. class ListPopFirstBlocking extends Command {
  4. public function getId() {
  5. return 'BLPOP';
  6. }
  7. protected function canBeHashed() {
  8. return $this->checkSameHashForKeys(
  9. array_slice(($args = $this->getArguments()), 0, count($args) - 1)
  10. );
  11. }
  12. }