Trait redis_driver::ScriptingCommands
source · [−]pub trait ScriptingCommands: CommandSend {
fn eval<S>(&self, script: S) -> Eval<'_, Self>
where
S: Into<BulkString>,
{ ... }
fn evalsha<S>(&self, sha1: S) -> Eval<'_, Self>
where
S: Into<BulkString>,
{ ... }
fn script_load<S, V>(
&self,
script: S
) -> Pin<Box<dyn Future<Output = Result<V>> + '_>>
where
S: Into<BulkString>,
V: FromValue,
{ ... }
}
Expand description
A group of Redis commands related to Scripting and Functions
See Also
Redis Scripting and Functions Commands Scripting with LUA Functions
Provided Methods
sourcefn eval<S>(&self, script: S) -> Eval<'_, Self>where
S: Into<BulkString>,
fn eval<S>(&self, script: S) -> Eval<'_, Self>where
S: Into<BulkString>,
This command copies the value stored at the source key to the destination key.
See Also
sourcefn evalsha<S>(&self, sha1: S) -> Eval<'_, Self>where
S: Into<BulkString>,
fn evalsha<S>(&self, sha1: S) -> Eval<'_, Self>where
S: Into<BulkString>,
Evaluate a script from the server’s cache by its SHA1 digest.