You are here

public function Redis_Queue_Base::getKeyForQueue in Redis 7.2

Same name and namespace in other branches
  1. 7.3 lib/Redis/Queue/Base.php \Redis_Queue_Base::getKeyForQueue()

Get queued items LIST key

Key will already be prefixed

Return value

string

6 calls to Redis_Queue_Base::getKeyForQueue()
Redis_Queue_PhpRedis::claimItem in lib/Redis/Queue/PhpRedis.php
Claim an item in the queue for processing.
Redis_Queue_PhpRedis::createItem in lib/Redis/Queue/PhpRedis.php
Add a queue item and store it directly to the queue.
Redis_Queue_PhpRedis::deleteItem in lib/Redis/Queue/PhpRedis.php
Delete a finished item from the queue.
Redis_Queue_PhpRedis::deleteQueue in lib/Redis/Queue/PhpRedis.php
Delete a queue and every item in the queue.
Redis_Queue_PhpRedis::numberOfItems in lib/Redis/Queue/PhpRedis.php
Retrieve the number of items in the queue.

... See full list

File

lib/Redis/Queue/Base.php, line 76

Class

Redis_Queue_Base
Redis allows implementing reliable queues, here is the spec:

Code

public function getKeyForQueue() {
  return $this
    ->getKey(self::QUEUE_KEY_PREFIX, $this->name, 'queued');
}