protected function Cache::setFlushTimestamp in MongoDB 7
Record a timestamp as marking the latest flush for the current bin.
As this performs a variable_set(), it is a costly operation.
Parameters
int $timestamp: A UNIX timestamp. May be 0.
2 calls to Cache::setFlushTimestamp()
- 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 184
Class
- Cache
- MongoDB cache implementation.
Namespace
Drupal\mongodb_cacheCode
protected function setFlushTimestamp($timestamp) {
variable_set($this->flushVarName, $timestamp);
}