EVAL_RO & EVALSHA_RO commands by shacharPash · Pull Request #2168 · StackExchange/StackExchange.Redis
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also do not like it that way, I tried to optimize this line but the problem is that the lines are not the same, in some of the lines you have to place the commands "EVAL/EVALSHA" and in some the commands "EVAL_RO/EVALSHA_RO"
I didn't understand your suggestion to use private helper API that takes bool readOnly, If this is still relevant despite what I have written I would like for you to elaborate further.