storeToCache() защищенный статический Метод

Write's an item to the cache // don't use the logger inside here
protected static storeToCache ( $data, $key, array $tags = [], null $lifetime = null, boolean $force = false ) : boolean | void
$data
$key
$tags array
$lifetime null
$force boolean
Результат boolean | void
Пример #1
0
 /**
  * Adds a Pimcore Object/Asset/Document to the cache
  *
  * @param $element
  */
 public static function loadElementToCache($element)
 {
     $cacheKey = Element\Service::getElementType($element) . "_" . $element->getId();
     Cache::storeToCache($element, $cacheKey, [], null, null, true);
 }