redis刷新列表,允许打断,防止过长的日志

This commit is contained in:
ayflying
2025-08-28 18:16:47 +08:00
parent 788cb2e6d4
commit 6efdac7bab
3 changed files with 14 additions and 3 deletions

View File

@@ -70,6 +70,9 @@ func (r *redis) RedisScanV2(cacheKey string, _func func([]string) error, _key ..
if len(newKeys) > 0 {
err = _func(newKeys)
if err != nil {
return err
}
}
//这个要放在最后