protected function setCache($name, $value, $duration = null) { $duration === null && ($duration = $this->cacheTime); return Yii::$app->cache->set($this->getCacheKey($name), $value, $duration); }