You are here

protected function Predis::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 Predis::incrementId()
Predis::createItem in src/Queue/Predis.php
Adds a queue item and store it directly to the queue.

File

src/Queue/Predis.php, line 62

Class

Predis
Redis queue implementation using Predis library backend.

Namespace

Drupal\redis\Queue

Code

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