public function PhpRedis::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/ PhpRedis.php, line 113
Class
- PhpRedis
- Redis queue implementation using PhpRedis extension backend.
Namespace
Drupal\redis\QueueCode
public function deleteItem($item) {
$this->client
->lrem($this->claimedListKey, $item->qid, -1);
$this->client
->hdel($this->availableItems, $item->qid);
}