mirror of
https://github.com/predis/predis.git
synced 2026-08-30 04:02:22 +00:00
33 lines
708 B
PHP
33 lines
708 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Predis package.
|
|
*
|
|
* (c) Daniele Alessandri <suppakilla@gmail.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
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)
|
|
);
|
|
}
|
|
}
|