批量更新
This commit is contained in:
+20
-2
@@ -14,9 +14,9 @@ return [
|
||||
// 驱动方式
|
||||
'type' => 'File',
|
||||
// 缓存保存目录
|
||||
'path' => '',
|
||||
'path' => runtime_path() . 'cache',
|
||||
// 缓存前缀
|
||||
'prefix' => '',
|
||||
'prefix' => 'cache_',
|
||||
// 缓存有效期 0表示永久缓存
|
||||
'expire' => 0,
|
||||
// 缓存标签前缀
|
||||
@@ -25,5 +25,23 @@ return [
|
||||
'serialize' => [],
|
||||
],
|
||||
// 更多的缓存连接
|
||||
'redis' => [
|
||||
// 驱动方式
|
||||
'type' => 'redis',
|
||||
// 服务器地址
|
||||
'host' => env('redis.host', '127.0.0.1'),
|
||||
// 端口
|
||||
'port' => env('redis.port', 6379),
|
||||
// 密码
|
||||
'password' => env('redis.password', ''),
|
||||
// 数据库索引
|
||||
'select' => env('redis.select', 0),
|
||||
// 连接超时时间
|
||||
'timeout' => 0,
|
||||
// 是否持久化连接
|
||||
'persistent' => true,
|
||||
// 缓存前缀
|
||||
'prefix' => 'yz_:',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user