RunRO optimistically uses EVALSHA_RO to run the script. If script does not exist it is retried using EVAL_RO.
(ctx context.Context, c Scripter, keys []string, args ...interface{})
| 201 | // RunRO optimistically uses EVALSHA_RO to run the script. If script does not exist |
| 202 | // it is retried using EVAL_RO. |
| 203 | func (s *Script) RunRO(ctx context.Context, c Scripter, keys []string, args ...interface{}) *Cmd { |
| 204 | r := s.EvalShaRO(ctx, c, keys, args...) |
| 205 | if errors.Is(r.Err(), ErrNoScript) { |
| 206 | return s.EvalRO(ctx, c, keys, args...) |
| 207 | } |
| 208 | return r |
| 209 | } |