123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace Predis\Command;
- class ListPopFirstBlocking extends AbstractCommand implements PrefixableCommandInterface
- {
-
- public function getId()
- {
- return 'BLPOP';
- }
-
- protected function filterArguments(Array $arguments)
- {
- if (count($arguments) === 2 && is_array($arguments[0])) {
- list($arguments, $timeout) = $arguments;
- array_push($arguments, $timeout);
- }
- return $arguments;
- }
-
- public function prefixKeys($prefix)
- {
- PrefixHelpers::skipLast($this, $prefix);
- }
- }
|