public function __construct(array $config = null, $id = null) { if (!isset($config['cache'])) { $config['cache'] = 'default'; } $this->cache = \Cache\Cache::ins($config['cache']); parent::__construct($config, $id); }
/** * 清除缓存,按需重载 * * @param string $cachename * @return boolean */ protected function removeCache($cachename) { return Cache::ins()->delete($cachename); }