You are here

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

File

src/Queue/PhpRedis.php, line 63

Class

PhpRedis
Redis queue implementation using PhpRedis extension backend.

Namespace

Drupal\redis\Queue

Code

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