mranney/node_redis — Issue #178: eval auto use evalsha
Author: guileen
Created: 2012-02-27 18:23:59+00:00
State: open

I just want to make sure does `eval` command will automatically try to call `evalsha`, and only retry on NOSCRIPT error.

This is the document from redis website

> The client library implementation can always optimistically send EVALSHA under the hoods even when the client actually called EVAL, in the hope the script was already seen by the server. If the NOSCRIPT error is returned EVAL will be used instead. Passing keys and arguments as EVAL additional arguments is also very useful in this context as the script string remains constant and can be efficiently cached by Redis.