function YamlCacheCollector::createWithMemoryCache
Creates an instance of the class with a memory cache.
This can be used where there is zero expectation of a cache hit rate or in testing.
1 call to YamlCacheCollector::createWithMemoryCache()
- FileStorage::__construct in core/
lib/ Drupal/ Core/ Config/ FileStorage.php - Constructs a new FileStorage.
File
-
core/
lib/ Drupal/ Core/ Utility/ YamlCacheCollector.php, line 23
Class
- YamlCacheCollector
- Caches YAML parsing in a cache collector.
Namespace
Drupal\Core\UtilityCode
public static function createWithMemoryCache() : static {
return new static('static_cache_key', new MemoryCache(new Time()), new NullLockBackend(), new Time());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.