public function BackendChain::set

Implements Drupal\Core\Cache\CacheBackendInterface::set().

Overrides CacheBackendInterface::set

File

drupal/core/lib/Drupal/Core/Cache/BackendChain.php, line 126
Definition of Drupal\Core\Cache\BackendChain.

Class

BackendChain
Defines a chained cache implementation for combining multiple cache backends.

Namespace

Drupal\Core\Cache

Code

public function set($cid, $data, $expire = CacheBackendInterface::CACHE_PERMANENT, array $tags = array()) {
  foreach ($this->backends as $backend) {
    $backend
      ->set($cid, $data, $expire, $tags);
  }
}