modified 添加redis配置

This commit is contained in:
zhaoxiang 2020-10-10 16:25:37 +08:00
parent dab0b83221
commit 7dc9ef8b70

View File

@ -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' => []
]
// 更多的缓存连接
],
];