From 2dd0ddc89c8184889e819780f070904d46197cb8 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 24 Sep 2024 10:07:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20redis=E6=95=B0=E6=8D=AEscan=E6=95=B0?= =?UTF-8?q?=E8=B0=83=E6=95=B41000?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/framework/redis/redis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/redis/redis.go b/src/framework/redis/redis.go index 32576f36..ef574de5 100644 --- a/src/framework/redis/redis.go +++ b/src/framework/redis/redis.go @@ -184,7 +184,7 @@ func GetKeys(source string, pattern string) ([]string, error) { // 循环遍历获取匹配的键 for { // 使用 SCAN 命令获取匹配的键 - batchKeys, nextCursor, err := rdb.Scan(ctx, cursor, pattern, 100).Result() + batchKeys, nextCursor, err := rdb.Scan(ctx, cursor, pattern, 1000).Result() if err != nil { logger.Errorf("Failed to scan keys: %v", err) return keys, err