You are here

protected function Cache::getFlushTimestamp in MongoDB 7

Return the timestamp of the latest flush.

Return value

int A UNIX timestamp.

2 calls to Cache::getFlushTimestamp()
Cache::clear in mongodb_cache/mongodb_cache_plugin.php
Cache::garbageCollection in mongodb_cache/mongodb_cache_plugin.php
Garbage collection for get() and getMultiple().

File

mongodb_cache/mongodb_cache_plugin.php, line 171

Class

Cache
MongoDB cache implementation.

Namespace

Drupal\mongodb_cache

Code

protected function getFlushTimestamp() {
  $result = intval(variable_get($this->flushVarName, 0));
  return $result;
}