Grokzen / redis-py-cluster

Python cluster client for the official redis cluster. Redis 3.0+.
https://redis-py-cluster.readthedocs.io/
MIT License
1.1k stars 316 forks source link

Allow EVAL/EVALSHA to read from replicas #480

Open rtkefreure opened 2 years ago

rtkefreure commented 2 years ago

Based on this comment https://github.com/redis/redis/issues/8537#issuecomment-784655245 it looks like it should be possible to send an EVAL/EVALSHA command to a replica in cluster mode (as long as the script commands are all readonly). It looks like this library explicitly prevents all EVAL/EVALSHA commands from running against replicas. Is that correct? If so, would it be possible to add in a new feature to allow EVAL/EVALSHA to run on replicas? Thanks