protected CacheCollector::persist($key, $persist = TRUE)
Flags an offset value to be written to the persistent cache.
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.
protected function persist($key, $persist = TRUE) { $this->keysToPersist[$key] = $persist; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cache!CacheCollector.php/function/CacheCollector::persist/8.1.x