pub trait ScriptingCommands {
Show 19 methods
// Provided 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<CommandArg> { ... }
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<CommandArg>,
L: FromValue { ... }
fn function_restore<P>(
&mut self,
serialized_payload: P,
policy: FunctionRestorePolicy,
) -> PreparedCommand<'_, Self, ()>
where Self: Sized,
P: Into<CommandArg> { ... }
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<CommandArg>,
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<CommandArg>,
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>
fn eval<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>
Sourcefn eval_readonly<R>(
&mut self,
builder: CallBuilder,
) -> PreparedCommand<'_, Self, R>
fn eval_readonly<R>( &mut self, builder: CallBuilder, ) -> PreparedCommand<'_, Self, R>
Sourcefn evalsha<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>
fn evalsha<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>
Sourcefn evalsha_readonly<R>(
&mut self,
builder: CallBuilder,
) -> PreparedCommand<'_, Self, R>
fn evalsha_readonly<R>( &mut self, builder: CallBuilder, ) -> PreparedCommand<'_, Self, R>
Sourcefn fcall<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>
fn fcall<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>
Sourcefn fcall_readonly<R>(
&mut self,
builder: CallBuilder,
) -> PreparedCommand<'_, Self, R>
fn fcall_readonly<R>( &mut self, builder: CallBuilder, ) -> PreparedCommand<'_, Self, R>
Sourcefn function_delete<L>(
&mut self,
library_name: L,
) -> PreparedCommand<'_, Self, ()>
fn function_delete<L>( &mut self, library_name: L, ) -> PreparedCommand<'_, Self, ()>
Sourcefn function_dump<P>(&mut self) -> PreparedCommand<'_, Self, P>
fn function_dump<P>(&mut self) -> PreparedCommand<'_, Self, P>
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>
fn function_load<F, L>( &mut self, replace: bool, function_code: F, ) -> PreparedCommand<'_, Self, L>
Sourcefn function_restore<P>(
&mut self,
serialized_payload: P,
policy: FunctionRestorePolicy,
) -> PreparedCommand<'_, Self, ()>
fn function_restore<P>( &mut self, serialized_payload: P, policy: FunctionRestorePolicy, ) -> PreparedCommand<'_, Self, ()>
Restore libraries from the serialized payload.
§See Also
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>>
fn script_exists<S, C>( &mut self, sha1s: C, ) -> PreparedCommand<'_, Self, Vec<bool>>
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.