LdapTools\Cache\CacheableItemInterface::getCacheName PHP Метод

getCacheName() публичный Метод

The cache name that should be referred to for the item. It should be unique.
public getCacheName ( ) : string
Результат string
    public function getCacheName();

Usage 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