mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-05 19:41:43 +08:00
modified 添加redis配置
This commit is contained in:
parent
dab0b83221
commit
7dc9ef8b70
@ -6,7 +6,7 @@
|
||||
|
||||
return [
|
||||
// 默认缓存驱动
|
||||
'default' => env('cache.driver', 'file'),
|
||||
'default' => env('cache.driver', 'redis'),
|
||||
|
||||
// 缓存连接方式配置
|
||||
'stores' => [
|
||||
@ -22,8 +22,18 @@ return [
|
||||
// 缓存标签前缀
|
||||
'tag_prefix' => 'tag:',
|
||||
// 序列化机制 例如 ['serialize', 'unserialize']
|
||||
'serialize' => [],
|
||||
'serialize' => []
|
||||
],
|
||||
'redis' => [
|
||||
// 驱动方式
|
||||
'type' => 'Redis',
|
||||
'host' => '127.0.0.1',
|
||||
'port' => 6379,
|
||||
'password' => '',
|
||||
'select' => 0,
|
||||
'prefix' => '',
|
||||
'serialize' => []
|
||||
]
|
||||
// 更多的缓存连接
|
||||
],
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user