/**
  * @return mixed
  */
 public function getMenus()
 {
     return $this->cache->sear('menus', function () {
         return $this->menu->getMenus();
     });
 }
 /**
  * @return mixed
  */
 public function current()
 {
     return $this->cache->sear('theme', function () {
         return $this->theme->current();
     });
 }
Esempio n. 3
0
 /**
  * Find an entry with it's ID
  * @param $id int ID of the Entry
  * @return mixed
  */
 public function byId($id)
 {
     return $this->cache->sear($this->getKey('id-' . $id), function () use($id) {
         return $this->model->byId($id);
     });
 }