ViewsData::cacheSet

protected ViewsData::cacheSet($cid, $data)

Sets data to the cache backend.

Parameters

string $cid: The cache ID to set.

mixed $data: The data that will be cached.

File

core/modules/views/src/ViewsData.php, line 210

Class

ViewsData
Class to manage and lazy load cached views data.

Namespace

Drupal\views

Code

protected function cacheSet($cid, $data) {
  return $this->cacheBackend->set($this->prepareCid($cid), $data, Cache::PERMANENT, array('views_data', 'config:core.extension'));
}
doc_Drupal
2016-10-29 09:54:59
Comments
Leave a Comment

Please login to continue.