You are here

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

File

src/Queue/ReliablePhpRedis.php, line 62

Class

ReliablePhpRedis
Redis queue implementation using PhpRedis extension backend.

Namespace

Drupal\redis\Queue

Code

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