Documentation ¶
Overview ¶
Package script optimizes lua script execution.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Script ¶
Script is script optimization class.
func (*Script) RunEx ¶
func (s *Script) RunEx(ctx context.Context, c redis.Scripter, keys []string, args ...interface{}) *redis.Cmd
RunEx executes the lua script. If the script does not exist on the server, it will be executed and uploaded through Eval, and if it exists, it will be executed through EvalSha However: in pipeline mode, if redis.Script.Run executes EvalSha and reports that the script does not exist, it will not be able to call Eval to retry, so optimization is prohibited in pipeline mode.
Click to show internal directories.
Click to hide internal directories.