具体方法如下:(相关推荐:yii)首先来配置组件。方便起见,我们的缓存组件配置在commonconfigmain.php文件,先来简单配置下文件缓存components => [ cache => [ class =>