You are here

protected function CacheBase::getLastDeleteAll in Redis 8

Returns the last delete all timestamp.

Return value

float The last delete timestamp as a timestamp with a millisecond precision.

1 call to CacheBase::getLastDeleteAll()
CacheBase::expandEntry in src/Cache/CacheBase.php
Prepares a cached item.

File

src/Cache/CacheBase.php, line 426

Class

CacheBase
Base class for redis cache backends.

Namespace

Drupal\redis\Cache

Code

protected function getLastDeleteAll() {

  // Cache the last delete all timestamp.
  if ($this->lastDeleteAll === NULL) {
    $this->lastDeleteAll = (double) $this->client
      ->get($this
      ->getKey(static::LAST_DELETE_ALL_KEY));
  }
  return $this->lastDeleteAll;
}