Field Notes
    Preparing search index...

    Function createScriptRunner

    • Builds a script runner bound to one client instance. When the client exposes both scriptLoad and evalSha, each distinct script is loaded once and then evaluated by SHA; a NOSCRIPT failure (the server's script cache was flushed or the connection moved to another node) reloads the script and retries once. Clients without the optional methods fall back to plain EVAL, so existing implementations keep working unchanged.

      Parameters

      Returns ScriptRunner