You are here

public function Predis::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/Predis.php, line 112

Class

Predis
Redis queue implementation using Predis library backend.

Namespace

Drupal\redis\Queue

Code

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