Trait redis_driver::ScriptingCommands
source · [−]pub trait ScriptingCommands<T>: PrepareCommand<T> {
Show 19 methods
fn eval<R>(&self, builder: CallBuilder) -> CommandResult<'_, T, R>
where
R: FromValue,
{ ... }
fn eval_readonly<R>(&self, builder: CallBuilder) -> CommandResult<'_, T, R>
where
R: FromValue,
{ ... }
fn evalsha<R>(&self, builder: CallBuilder) -> CommandResult<'_, T, R>
where
R: FromValue,
{ ... }
fn evalsha_readonly<R>(
&self,
builder: CallBuilder
) -> CommandResult<'_, T, R>
where
R: FromValue,
{ ... }
fn fcall<R>(&self, builder: CallBuilder) -> CommandResult<'_, T, R>
where
R: FromValue,
{ ... }
fn fcall_readonly<R>(&self, builder: CallBuilder) -> CommandResult<'_, T, R>
where
R: FromValue,
{ ... }
fn function_delete<L>(&self, library_name: L) -> CommandResult<'_, T, ()>
where
L: Into<BulkString>,
{ ... }
fn function_dump<P>(&self) -> CommandResult<'_, T, P>
where
P: FromValue,
{ ... }
fn function_flush(
&self,
flushing_mode: FlushingMode
) -> CommandResult<'_, T, ()> { ... }
fn function_kill(&self) -> CommandResult<'_, T, ()> { ... }
fn function_list(
&self,
options: FunctionListOptions
) -> CommandResult<'_, T, Vec<LibraryInfo>> { ... }
fn function_load<F, L>(
&self,
replace: bool,
function_code: F
) -> CommandResult<'_, T, L>
where
F: Into<BulkString>,
L: FromValue,
{ ... }
fn function_restore<P>(
&self,
serialized_payload: P,
policy: FunctionRestorePolicy
) -> CommandResult<'_, T, ()>
where
P: Into<BulkString>,
{ ... }
fn function_stats(&self) -> CommandResult<'_, T, FunctionStats> { ... }
fn script_debug(
&self,
debug_mode: ScriptDebugMode
) -> CommandResult<'_, T, ()> { ... }
fn script_exists<S, C>(&self, sha1s: C) -> CommandResult<'_, T, Vec<bool>>
where
S: Into<BulkString>,
C: SingleArgOrCollection<S>,
{ ... }
fn script_flush(
&self,
flushing_mode: FlushingMode
) -> CommandResult<'_, T, ()> { ... }
fn script_kill(&self) -> CommandResult<'_, T, ()> { ... }
fn script_load<S, V>(&self, script: S) -> CommandResult<'_, T, 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<R>(&self, builder: CallBuilder) -> CommandResult<'_, T, R>where
R: FromValue,
fn eval<R>(&self, builder: CallBuilder) -> CommandResult<'_, T, R>where
R: FromValue,
sourcefn eval_readonly<R>(&self, builder: CallBuilder) -> CommandResult<'_, T, R>where
R: FromValue,
fn eval_readonly<R>(&self, builder: CallBuilder) -> CommandResult<'_, T, R>where
R: FromValue,
sourcefn evalsha<R>(&self, builder: CallBuilder) -> CommandResult<'_, T, R>where
R: FromValue,
fn evalsha<R>(&self, builder: CallBuilder) -> CommandResult<'_, T, R>where
R: FromValue,
sourcefn evalsha_readonly<R>(&self, builder: CallBuilder) -> CommandResult<'_, T, R>where
R: FromValue,
fn evalsha_readonly<R>(&self, builder: CallBuilder) -> CommandResult<'_, T, R>where
R: FromValue,
sourcefn fcall<R>(&self, builder: CallBuilder) -> CommandResult<'_, T, R>where
R: FromValue,
fn fcall<R>(&self, builder: CallBuilder) -> CommandResult<'_, T, R>where
R: FromValue,
sourcefn fcall_readonly<R>(&self, builder: CallBuilder) -> CommandResult<'_, T, R>where
R: FromValue,
fn fcall_readonly<R>(&self, builder: CallBuilder) -> CommandResult<'_, T, R>where
R: FromValue,
sourcefn function_delete<L>(&self, library_name: L) -> CommandResult<'_, T, ()>where
L: Into<BulkString>,
fn function_delete<L>(&self, library_name: L) -> CommandResult<'_, T, ()>where
L: Into<BulkString>,
sourcefn function_dump<P>(&self) -> CommandResult<'_, T, P>where
P: FromValue,
fn function_dump<P>(&self) -> CommandResult<'_, T, P>where
P: FromValue,
Return the serialized payload of loaded libraries.
You can restore the serialized payload later with the
function_restore
command.
Return
The serialized payload
See Also
sourcefn function_flush(&self, flushing_mode: FlushingMode) -> CommandResult<'_, T, ()>
fn function_flush(&self, flushing_mode: FlushingMode) -> CommandResult<'_, T, ()>
sourcefn function_kill(&self) -> CommandResult<'_, T, ()>
fn function_kill(&self) -> CommandResult<'_, T, ()>
sourcefn function_list(
&self,
options: FunctionListOptions
) -> CommandResult<'_, T, Vec<LibraryInfo>>
fn function_list(
&self,
options: FunctionListOptions
) -> CommandResult<'_, T, Vec<LibraryInfo>>
Return information about the functions and libraries.
See Also
sourcefn function_load<F, L>(
&self,
replace: bool,
function_code: F
) -> CommandResult<'_, T, L>where
F: Into<BulkString>,
L: FromValue,
fn function_load<F, L>(
&self,
replace: bool,
function_code: F
) -> CommandResult<'_, T, L>where
F: Into<BulkString>,
L: FromValue,
sourcefn function_restore<P>(
&self,
serialized_payload: P,
policy: FunctionRestorePolicy
) -> CommandResult<'_, T, ()>where
P: Into<BulkString>,
fn function_restore<P>(
&self,
serialized_payload: P,
policy: FunctionRestorePolicy
) -> CommandResult<'_, T, ()>where
P: Into<BulkString>,
sourcefn function_stats(&self) -> CommandResult<'_, T, FunctionStats>
fn function_stats(&self) -> CommandResult<'_, T, FunctionStats>
Return information about the function that’s currently running and information about the available execution engines.
See Also
sourcefn script_debug(&self, debug_mode: ScriptDebugMode) -> CommandResult<'_, T, ()>
fn script_debug(&self, debug_mode: ScriptDebugMode) -> CommandResult<'_, T, ()>
Set the debug mode for subsequent scripts executed with EVAL.
See Also
sourcefn script_exists<S, C>(&self, sha1s: C) -> CommandResult<'_, T, Vec<bool>>where
S: Into<BulkString>,
C: SingleArgOrCollection<S>,
fn script_exists<S, C>(&self, sha1s: C) -> CommandResult<'_, T, Vec<bool>>where
S: Into<BulkString>,
C: SingleArgOrCollection<S>,
sourcefn script_flush(&self, flushing_mode: FlushingMode) -> CommandResult<'_, T, ()>
fn script_flush(&self, flushing_mode: FlushingMode) -> CommandResult<'_, T, ()>
sourcefn script_kill(&self) -> CommandResult<'_, T, ()>
fn script_kill(&self) -> CommandResult<'_, T, ()>
Kills the currently executing EVAL script, assuming no write operation was yet performed by the script.