pub trait ScriptingCommands<'a> {
Show 19 methods
// Provided methods
fn eval<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
where Self: Sized,
R: Response { ... }
fn eval_readonly<R>(
self,
builder: CallBuilder,
) -> PreparedCommand<'a, Self, R>
where Self: Sized,
R: Response { ... }
fn evalsha<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
where Self: Sized,
R: Response { ... }
fn evalsha_readonly<R>(
self,
builder: CallBuilder,
) -> PreparedCommand<'a, Self, R>
where Self: Sized,
R: Response { ... }
fn fcall<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
where Self: Sized,
R: Response { ... }
fn fcall_readonly<R>(
self,
builder: CallBuilder,
) -> PreparedCommand<'a, Self, R>
where Self: Sized,
R: Response { ... }
fn function_delete<L>(
self,
library_name: L,
) -> PreparedCommand<'a, Self, ()>
where Self: Sized,
L: SingleArg { ... }
fn function_dump(self) -> PreparedCommand<'a, Self, FunctionDumpResult>
where Self: Sized { ... }
fn function_flush(
self,
flushing_mode: FlushingMode,
) -> PreparedCommand<'a, Self, ()>
where Self: Sized { ... }
fn function_kill(self) -> PreparedCommand<'a, Self, ()>
where Self: Sized { ... }
fn function_list(
self,
options: FunctionListOptions,
) -> PreparedCommand<'a, Self, Vec<LibraryInfo>>
where Self: Sized { ... }
fn function_load<F, L>(
self,
replace: bool,
function_code: F,
) -> PreparedCommand<'a, Self, L>
where Self: Sized,
F: SingleArg,
L: PrimitiveResponse { ... }
fn function_restore<P>(
self,
serialized_payload: P,
policy: FunctionRestorePolicy,
) -> PreparedCommand<'a, Self, ()>
where Self: Sized,
P: SingleArg { ... }
fn function_stats(self) -> PreparedCommand<'a, Self, FunctionStats>
where Self: Sized { ... }
fn script_debug(
self,
debug_mode: ScriptDebugMode,
) -> PreparedCommand<'a, Self, ()>
where Self: Sized { ... }
fn script_exists<S, C>(
self,
sha1s: C,
) -> PreparedCommand<'a, Self, Vec<bool>>
where Self: Sized,
S: SingleArg,
C: SingleArgCollection<S> { ... }
fn script_flush(
self,
flushing_mode: FlushingMode,
) -> PreparedCommand<'a, Self, ()>
where Self: Sized { ... }
fn script_kill(self) -> PreparedCommand<'a, Self, ()>
where Self: Sized { ... }
fn script_load<S, V>(self, script: S) -> PreparedCommand<'a, Self, V>
where Self: Sized,
S: SingleArg,
V: PrimitiveResponse { ... }
}
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) -> PreparedCommand<'a, Self, R>
fn eval<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
Sourcefn eval_readonly<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
fn eval_readonly<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
Sourcefn evalsha<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
fn evalsha<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
Sourcefn evalsha_readonly<R>(
self,
builder: CallBuilder,
) -> PreparedCommand<'a, Self, R>
fn evalsha_readonly<R>( self, builder: CallBuilder, ) -> PreparedCommand<'a, Self, R>
Sourcefn fcall<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
fn fcall<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
Sourcefn fcall_readonly<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
fn fcall_readonly<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
Sourcefn function_delete<L>(self, library_name: L) -> PreparedCommand<'a, Self, ()>
fn function_delete<L>(self, library_name: L) -> PreparedCommand<'a, Self, ()>
Sourcefn function_dump(self) -> PreparedCommand<'a, Self, FunctionDumpResult>where
Self: Sized,
fn function_dump(self) -> PreparedCommand<'a, Self, FunctionDumpResult>where
Self: Sized,
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,
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn function_flush(
self,
flushing_mode: FlushingMode,
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
Sourcefn function_kill(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn function_kill(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
Sourcefn function_list(
self,
options: FunctionListOptions,
) -> PreparedCommand<'a, Self, Vec<LibraryInfo>>where
Self: Sized,
fn function_list(
self,
options: FunctionListOptions,
) -> PreparedCommand<'a, Self, Vec<LibraryInfo>>where
Self: Sized,
Return information about the functions and libraries.
§See Also
Sourcefn function_load<F, L>(
self,
replace: bool,
function_code: F,
) -> PreparedCommand<'a, Self, L>
fn function_load<F, L>( self, replace: bool, function_code: F, ) -> PreparedCommand<'a, Self, L>
Sourcefn function_restore<P>(
self,
serialized_payload: P,
policy: FunctionRestorePolicy,
) -> PreparedCommand<'a, Self, ()>
fn function_restore<P>( self, serialized_payload: P, policy: FunctionRestorePolicy, ) -> PreparedCommand<'a, Self, ()>
Restore libraries from the serialized payload.
§See Also
Sourcefn function_stats(self) -> PreparedCommand<'a, Self, FunctionStats>where
Self: Sized,
fn function_stats(self) -> PreparedCommand<'a, 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(
self,
debug_mode: ScriptDebugMode,
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn script_debug(
self,
debug_mode: ScriptDebugMode,
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
Set the debug mode for subsequent scripts executed with EVAL.
§See Also
Sourcefn script_exists<S, C>(self, sha1s: C) -> PreparedCommand<'a, Self, Vec<bool>>
fn script_exists<S, C>(self, sha1s: C) -> PreparedCommand<'a, Self, Vec<bool>>
Sourcefn script_flush(
self,
flushing_mode: FlushingMode,
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn script_flush(
self,
flushing_mode: FlushingMode,
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
Sourcefn script_kill(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn script_kill(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
Kills the currently executing EVAL script, assuming no write operation was yet performed by the script.