From 5f7017b78a49e2f597dc45a8c69c3348b4acf501 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Sat, 17 Jan 2026 14:12:05 +0800 Subject: [PATCH] =?UTF-8?q?chore(cache):=20=E5=A4=87=E6=B3=A8=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E8=AE=BE=E7=BD=AE=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/cache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/cache.php b/src/config/cache.php index 7160f1db8..85fe998e6 100644 --- a/src/config/cache.php +++ b/src/config/cache.php @@ -19,7 +19,7 @@ return [ // 缓存前缀 'prefix' => '', // 缓存有效期 0表示永久缓存 - 'expire' => 0, + 'expire' => env('redis.expire', 604800), // 缓存标签前缀 'tag_prefix' => 'tag:', // 序列化机制 例如 ['serialize', 'unserialize'] @@ -33,7 +33,7 @@ return [ 'host' => env('redis.hostport', '127.0.0.1'), // redis密码 'password' => env('redis.password', 'luckyshop123!@#'), - // 缓存有效期 0表示永久缓存 + // 缓存有效期 0表示永久缓存, 604800表示指 7 天 的过期时间 'expire' => env('redis.expire', 604800), ], // 更多的缓存连接