提交 739d041f authored 作者: wangkr's avatar wangkr

更新 cache.php

上级 52eb3db0
<?php <?php
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ] // | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved. // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com> // | Author: liu21st <liu21st@gmail.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | 缓存设置 // | 缓存设置
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
return [ return [
// 缓存配置为复合类型 // 缓存配置为复合类型
'type' => 'complex', 'type' => 'complex',
'default' => [ 'default' => [
'type' => 'file', 'type' => 'file',
// 全局缓存有效期(0为永久有效) // 全局缓存有效期(0为永久有效)
'expire'=> 0, 'expire'=> 0,
// 缓存前缀 // 缓存前缀
'prefix'=> '', 'prefix'=> '',
// 缓存目录 // 缓存目录
'path' => '', 'path' => '',
], ],
'redis' => [ 'redis' => [
'type' => 'redis', 'type' => 'redis',
'host' => '127.0.0.1', 'host' => '192.168.1.71',
// 全局缓存有效期(0为永久有效) // 全局缓存有效期(0为永久有效)
'expire'=> 0, 'expire'=> 0,
// 缓存前缀 // 缓存前缀
'prefix'=> '', 'prefix'=> '',
], ],
// 添加更多的缓存类型设置 // 添加更多的缓存类型设置
]; ];
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论