chore(cache): 备注缓存设置说明

This commit is contained in:
2026-01-17 14:12:05 +08:00
parent 949940dca6
commit 5f7017b78a

View File

@@ -19,7 +19,7 @@ return [
// 缓存前缀 // 缓存前缀
'prefix' => '', 'prefix' => '',
// 缓存有效期 0表示永久缓存 // 缓存有效期 0表示永久缓存
'expire' => 0, 'expire' => env('redis.expire', 604800),
// 缓存标签前缀 // 缓存标签前缀
'tag_prefix' => 'tag:', 'tag_prefix' => 'tag:',
// 序列化机制 例如 ['serialize', 'unserialize'] // 序列化机制 例如 ['serialize', 'unserialize']
@@ -33,7 +33,7 @@ return [
'host' => env('redis.hostport', '127.0.0.1'), 'host' => env('redis.hostport', '127.0.0.1'),
// redis密码 // redis密码
'password' => env('redis.password', 'luckyshop123!@#'), 'password' => env('redis.password', 'luckyshop123!@#'),
// 缓存有效期 0表示永久缓存 // 缓存有效期 0表示永久缓存 604800表示指 7 天 的过期时间
'expire' => env('redis.expire', 604800), 'expire' => env('redis.expire', 604800),
], ],
// 更多的缓存连接 // 更多的缓存连接