/**
  * Sets a model to the cache
  * @param zibo\library\orm\model\Model $model Model to cache
  * @return null
  */
 public function setModel(Model $model)
 {
     $modelName = $model->getName();
     $this->cache->set(self::CACHE_TYPE_MODEL, $modelName, $model);
     $this->indexModel[$modelName] = $modelName;
     $this->cache->set(self::CACHE_TYPE_INDEX, self::CACHE_TYPE_MODEL, $this->indexModel);
 }
 /**
  * Sets a dashboard to the model
  * @param Dashboard $dashboard
  * @return null
  */
 public function setDashboard(Dashboard $dashboard)
 {
     $this->cache->set(self::CACHE_TYPE, $dashboard->getName(), $dashboard);
 }