缓存配置设置配置项配置文件路径:例子:Redis作为缓存缓存配置 设置配置项配置文件路径:config/{环境}/common.config.phpapp/{应用}/config.php 两个里面都可以配置,只需增加一个配置项(cache)即可 例子:Redis作为缓存return [ 'cache' => [ 'type' => 'Redis', 'host' => '127.0.0.1', 'port' => 6379, 'timeout' => 3, 'db' => 6 ]];