Struct td_rredis::ScriptInvocation [] [src]

pub struct ScriptInvocation<'a> { /* fields omitted */ }

Represents a prepared script call.

Methods

impl<'a> ScriptInvocation<'a>
[src]

This type collects keys and other arguments for the script so that it can be then invoked. While the Script type itself holds the script, the ScriptInvocation holds the arguments that should be invoked until it's sent to the server.

Adds a regular argument to the invocation. This ends up as ARGV[i] in the script.

Adds a key argument to the invocation. This ends up as KEYS[i] in the script.

Invokes the script and returns the result.