ChainedFastBackend::getLastWriteTimestamp

protected ChainedFastBackend::getLastWriteTimestamp()

Gets the last write timestamp.

File

core/lib/Drupal/Core/Cache/ChainedFastBackend.php, line 284

Class

ChainedFastBackend
Defines a backend with a fast and a consistent backend chain.

Namespace

Drupal\Core\Cache

Code

protected function getLastWriteTimestamp() {
  if ($this->lastWriteTimestamp === NULL) {
    $cache = $this->consistentBackend->get(self::LAST_WRITE_TIMESTAMP_PREFIX . $this->bin);
    $this->lastWriteTimestamp = $cache ? $cache->data : 0;
  }
  return $this->lastWriteTimestamp;
}
doc_Drupal
2016-10-29 08:49:43
Comments
Leave a Comment

Please login to continue.