ListPopFirstBlocking.php 474 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Predis\Commands;
  3. class ListPopFirstBlocking extends Command
  4. {
  5. public function getId()
  6. {
  7. return 'BLPOP';
  8. }
  9. protected function onPrefixKeys(Array $arguments, $prefix)
  10. {
  11. return PrefixHelpers::skipLastArgument($arguments, $prefix);
  12. }
  13. protected function canBeHashed()
  14. {
  15. return $this->checkSameHashForKeys(
  16. array_slice(($args = $this->getArguments()), 0, count($args) - 1)
  17. );
  18. }
  19. }