mirror of
https://github.com/predis/predis.git
synced 2026-10-16 16:55:47 +00:00
24 lines
474 B
PHP
24 lines
474 B
PHP
<?php
|
|
|
|
namespace Predis\Commands;
|
|
|
|
class ListPopFirstBlocking extends Command
|
|
{
|
|
public function getId()
|
|
{
|
|
return 'BLPOP';
|
|
}
|
|
|
|
protected function onPrefixKeys(Array $arguments, $prefix)
|
|
{
|
|
return PrefixHelpers::skipLastArgument($arguments, $prefix);
|
|
}
|
|
|
|
protected function canBeHashed()
|
|
{
|
|
return $this->checkSameHashForKeys(
|
|
array_slice(($args = $this->getArguments()), 0, count($args) - 1)
|
|
);
|
|
}
|
|
}
|