You are here

protected function DefaultPluginManager::cacheSet in Plug 7

Stores data in the persistent cache, respecting the use caches flag.

See also

\DrupalCacheInterface::set()

1 call to DefaultPluginManager::cacheSet()
DefaultPluginManager::setCachedDefinitions in lib/Drupal/Core/Plugin/DefaultPluginManager.php
Sets a cache of plugin definitions for the decorated discovery class.

File

lib/Drupal/Core/Plugin/DefaultPluginManager.php, line 236
Contains \Drupal\Core\Plugin\DefaultPluginManager.

Class

DefaultPluginManager
Base class for plugin managers.

Namespace

Drupal\Core\Plugin

Code

protected function cacheSet($cid, $data, $expire = CACHE_PERMANENT, array $tags = array()) {
  if ($this->cacheBackend && $this->useCaches) {
    $this->cacheBackend
      ->set($cid, $data, $expire, $tags);
  }
}