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
파일: Warming.php 프로젝트: pimcore/pimcore
 /**
  * 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);
 }