Use cluster-aware redis client
Running against Azure Managed Redis with its default clustering policy "OSSCluster" we see failures with redis.exceptions.MovedError
Apparently the solution should be to use a cluster-aware client, as in from redis.cluster import RedisCluster etc
(See also: https://learn.microsoft.com/en-nz/answers/questions/5612078/having-issues-with-redis-clustering-on-azure-manag)
switching to policy "EnterpriseCluster" works around.
I see that #381 asks for similar.
if there would be a plan to add cluster support, i might be able to do the work
tho in valeky-py, which is a fork of redis-py, this issue exists https://github.com/issues/created?issue=valkey-io%7Cvalkey-py%7C223
i would guess the same issue applies to redis-py, should investigate