fetch() public méthode

public fetch ( string $channel = 'default' ) : Item[]
$channel string
Résultat Item[]
Exemple #1
0
 /**
  * @param string $channel
  *
  * @return array|CacheInterface
  */
 public function fetch($channel = 'default')
 {
     $items = $this->getFromCache($channel);
     if (!$items) {
         $items = parent::fetch($channel);
         $this->setToCache($channel, $items);
     }
     return $items;
 }