CacheFactoryInterface::get

public CacheFactoryInterface::get($bin) Gets a cache backend class for a given cache bin. Parameters string $bin: The cache bin for which a cache backend object should be returned. Return value \Drupal\Core\Cache\CacheBackendInterface The cache backend object associated with the specified bin. File core/lib/Drupal/Core/Cache/CacheFactoryInterface.php, line 19 Class CacheFactoryInterface An interface defining cache factory classes. Namespace Drupal\Core\Cache Code public function get(

CacheFactoryInterface

An interface defining cache factory classes. Hierarchy interface \Drupal\Core\Cache\CacheFactoryInterface File core/lib/Drupal/Core/Cache/CacheFactoryInterface.php, line 8 Namespace Drupal\Core\Cache Members Name Modifiers Type Description CacheFactoryInterface::get public function Gets a cache backend class for a given cache bin.

CacheFactory::__construct

public CacheFactory::__construct(Settings $settings, array $default_bin_backends = array()) Constructs CacheFactory object. Parameters \Drupal\Core\Site\Settings $settings: The settings array. array $default_bin_backends: (optional) A mapping of bin to backend service name. Mappings in $settings take precedence over this. File core/lib/Drupal/Core/Cache/CacheFactory.php, line 45 Class CacheFactory Namespace Drupal\Core\Cache Code public function __construct(Settings $settings, array

CacheFactory::get

public CacheFactory::get($bin) Instantiates a cache backend class for a given cache bin. By default, this returns an instance of the Drupal\Core\Cache\DatabaseBackend class. Classes implementing Drupal\Core\Cache\CacheBackendInterface can register themselves both as a default implementation and for specific bins. Parameters string $bin: The cache bin for which a cache backend object should be returned. Return value \Drupal\Core\Cache\CacheBackendInterface The cache backend object associated w

CacheFactory::$settings

The settings array. Type: \Drupal\Core\Site\Settings File core/lib/Drupal/Core/Cache/CacheFactory.php, line 21 Class CacheFactory Namespace Drupal\Core\Cache Code protected $settings;

CacheFactory::$defaultBinBackends

A map of cache bin to default cache backend service name. All mappings in $settings takes precedence over this, but this can be used to optimize cache storage for a Drupal installation without cache customizations in settings.php. For example, this can be used to map the 'bootstrap' bin to 'cache.backend.chainedfast', while allowing other bins to fall back to the global default of 'cache.backend.database'. Type: array File core/lib/Drupal/Core/Cache/CacheFactory.php, line 34 Class CacheFact

CacheFactory

Hierarchy class \Drupal\Core\Cache\CacheFactory implements CacheFactoryInterface, ContainerAwareInterface uses ContainerAwareTrait File core/lib/Drupal/Core/Cache/CacheFactory.php, line 12 Namespace Drupal\Core\Cache Members Name Modifiers Type Description CacheFactory::$defaultBinBackends protected property A map of cache bin to default cache backend service name. CacheFactory::$settings protected property The settings array. CacheFactory::get public funct

CachedStorage::__construct

public CachedStorage::__construct(StorageInterface $storage, CacheBackendInterface $cache) Constructs a new CachedStorage. Parameters \Drupal\Core\Config\StorageInterface $storage: A configuration storage to be cached. \Drupal\Core\Cache\CacheBackendInterface $cache: A cache backend used to store configuration. File core/lib/Drupal/Core/Config/CachedStorage.php, line 47 Class CachedStorage Defines the cached storage. Namespace Drupal\Core\Config Code public function __construct(Storag

CachedStorage::write

public CachedStorage::write($name, array $data) Writes configuration data to the storage. Parameters string $name: The name of a configuration object to save. array $data: The configuration data to write. Return value bool TRUE on success, FALSE in case of an error. Throws \Drupal\Core\Config\StorageException If the back-end storage does not exist and cannot be created. Overrides StorageInterface::write File core/lib/Drupal/Core/Config/CachedStorage.php, line 123 Class CachedStorage Def

CachedStorage::resetListCache

public CachedStorage::resetListCache() Clears the static list cache. Overrides StorageCacheInterface::resetListCache File core/lib/Drupal/Core/Config/CachedStorage.php, line 229 Class CachedStorage Defines the cached storage. Namespace Drupal\Core\Config Code public function resetListCache() { $this->findByPrefixCache = array(); }