#4318·redis-py

RedisCluster 和 async RedisCluster 在空目标节点上存在分歧

作者: dylanpulver创建于 2026年9月10日更新于 2026年9月10日

Redis/cluster.py 保护 is not None:

python
if passed_targets is not None and not self._is_nodes_flag(passed_targets):

Redis/asyncio/cluster.py 保护真值性:

python
if passed_targets and not self._is_node_flag(passed_targets):

_is_nodes_flag / _is_node_flag_parse_target_nodes 在两者中都是相同的,因此唯一的区别是哪些值会到达它们。