CacheCollector::persist

protected CacheCollector::persist($key, $persist = TRUE)

Flags an offset value to be written to the persistent cache.

Parameters

string $key: The key that was requested.

bool $persist: (optional) Whether the offset should be persisted or not, defaults to TRUE. When called with $persist = FALSE the offset will be unflagged so that it will not be written at the end of the request.

File

core/lib/Drupal/Core/Cache/CacheCollector.php, line 192

Class

CacheCollector
Default implementation for CacheCollectorInterface.

Namespace

Drupal\Core\Cache

Code

protected function persist($key, $persist = TRUE) {
  $this->keysToPersist[$key] = $persist;
}
doc_Drupal
2016-10-29 08:49:23
Comments
Leave a Comment

Please login to continue.