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