You are here

public function Redis_Queue_Base::getKeyForData in Redis 7.2

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

Get data HASH key

Key will already be prefixed

Return value

string

4 calls to Redis_Queue_Base::getKeyForData()
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.

File

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

Class

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

Code

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