本文整理匯總了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);
}