LdapTools\Cache\CacheableItemInterface::getCacheType PHP Method

getCacheType() public static method

The cache type of the item, such as the class name or something else.
public static getCacheType ( ) : string
return string
    public static function getCacheType();

Usage Example

Example #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;
 }
CacheableItemInterface