getCacheType() 공개 정적인 메소드

The cache type of the item, such as the class name or something else.
public static getCacheType ( ) : string
리턴 string
예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function set(CacheableItemInterface $cacheableItem)
 {
     $item = $this->getCacheItem($cacheableItem->getCacheType(), $cacheableItem->getCacheName());
     $data = $item->get();
     if ($item->isMiss()) {
         $item->lock();
         $this->getPool()->save($item->set($cacheableItem));
     } else {
         $cacheableItem = $data;
     }
     return $cacheableItem;
 }