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