本文整理汇总了PHP中Predis\Client::rpop方法的典型用法代码示例。如果您正苦于以下问题:PHP Client::rpop方法的具体用法?PHP Client::rpop怎么用?PHP Client::rpop使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Predis\Client
的用法示例。
在下文中一共展示了Client::rpop方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get
public function get()
{
do {
$response = $this->redis->rpop("jobs");
usleep(500);
} while ($response === null);
return unserialize($response);
}
示例2: handleBufferedEvents
/**
*
*/
private function handleBufferedEvents()
{
$length = $this->redis->llen(self::BUFFER_LIST_KEY);
$webHookData = [];
for ($i = 0; $i < $length; $i++) {
$event = $this->redis->rpop(self::BUFFER_LIST_KEY);
$webHookData[] = json_decode($event, true);
}
$this->webHookApi->execute(WebHookEnum::HOST_MESSENGER_ONLINE_STATE_CHANGED, $webHookData);
}
示例3: isAuthenticated
/**
* {@inheritdoc}
*/
public function isAuthenticated()
{
$message = $this->redis->rpop($this->getKey('client.commands.' . $this->clientId . '.authenticate'));
if (null == $message) {
return null;
}
return unserialize($message);
}
示例4: listPull
private function listPull()
{
return $this->client->rpop($this->key_header);
}
示例5: rpop
public function rpop($channel)
{
return $this->client->rpop($channel);
}