前端分流页功能
This commit is contained in:
+20
-9
@@ -183,16 +183,27 @@ return [
|
||||
// +----------------------------------------------------------------------
|
||||
// | 缓存设置
|
||||
// +----------------------------------------------------------------------
|
||||
'cache' => [
|
||||
// 驱动方式
|
||||
'type' => 'File',
|
||||
// 缓存保存目录
|
||||
'path' => CACHE_PATH,
|
||||
// 缓存前缀
|
||||
'prefix' => '',
|
||||
// 缓存有效期 0表示永久缓存
|
||||
'expire' => 0,
|
||||
// 'cache' => [
|
||||
// // 驱动方式
|
||||
// 'type' => 'File',
|
||||
// // 缓存保存目录
|
||||
// 'path' => CACHE_PATH,
|
||||
// // 缓存前缀
|
||||
// 'prefix' => '',
|
||||
// // 缓存有效期 0表示永久缓存
|
||||
// 'expire' => 0,
|
||||
// ],
|
||||
|
||||
'cache' => [
|
||||
'type' => 'redis', // 修改为 redis
|
||||
'host' => '127.0.0.1', // Redis 服务器地址
|
||||
'port' => 6379, // Redis 端口
|
||||
'password' => '', // Redis 密码,若无则留空
|
||||
'select' => 0, // 数据库索引
|
||||
'expire' => 0, // 缓存有效期 0表示永久
|
||||
'timeout' => 0, // 超时时间
|
||||
],
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
// | 会话设置
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user