You are here

public function ReliablePhpRedis::deleteItem in Redis 8

Deletes a finished item from the queue.

Parameters

$item: The item returned by \Drupal\Core\Queue\QueueInterface::claimItem().

Overrides QueueInterface::deleteItem

File

src/Queue/ReliablePhpRedis.php, line 114

Class

ReliablePhpRedis
Redis queue implementation using PhpRedis extension backend.

Namespace

Drupal\redis\Queue

Code

public function deleteItem($item) {
  $this->client
    ->multi()
    ->lrem($this->claimedListKey, $item->qid, -1)
    ->hdel($this->availableItems, $item->qid)
    ->exec();
}