You are here

protected function ReliablePredis::incrementId in Redis 8

Gets next serial ID for Redis queue items.

Return value

int Next serial ID for Redis queue item.

1 call to ReliablePredis::incrementId()
ReliablePredis::createItem in src/Queue/ReliablePredis.php
Adds a queue item and store it directly to the queue.

File

src/Queue/ReliablePredis.php, line 62

Class

ReliablePredis
Redis queue implementation using Predis library backend.

Namespace

Drupal\redis\Queue

Code

protected function incrementId() {
  return $this->client
    ->incr($this->incrementCounterKey);
}