Open
Conversation
yunjiangao-beep
commented
Mar 4, 2026
- 将 Redis 客户端调用从 StrictRedis 迁移为 Redis,统一 from_url 与普通连接写法,适配 redis4+;
- 调整集群模式实现,改为使用 redis.cluster.RedisCluster 与 ClusterNode;
- 为集群导入增加显式异常提示,避免低版本环境下报错信息不明确;
- 优化 sdelete 的 sscan 游标循环终止逻辑,避免类型差异带来的潜在死循环;
- 将 execute_command 改为参数化调用(如 KEYS/TYPE/MEMORY USAGE),提升新版本兼容性;
- 依赖声明更新为 redis>=4.1.0,并移除 redis-py-cluster。
2. 调整集群模式实现,改为使用 redis.cluster.RedisCluster 与 ClusterNode; 3. 为集群导入增加显式异常提示,避免低版本环境下报错信息不明确; 4. 优化 sdelete 的 sscan 游标循环终止逻辑,避免类型差异带来的潜在死循环; 5. 将 execute_command 改为参数化调用(如 KEYS/TYPE/MEMORY USAGE),提升新版本兼容性; 6. 依赖声明更新为 redis>=4.1.0,并移除 redis-py-cluster。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.