Пример #1
0
 public function fetchAll($params = array())
 {
     $adapter = new ArrayAdapter($this->cacheManager->getCacheItems());
     return new CacheCollection($adapter);
 }
Пример #2
0
 public function indexAction()
 {
     $cacheItems = $this->cacheManager->getCacheItems();
     return new ViewModel(['cacheItems' => $cacheItems]);
 }