Trait ScriptingCommands

Source
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§

Source

fn eval<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>
where Self: Sized, R: FromValue,

Invoke the execution of a server-side Lua script.

§Return

The return value of the script

§See Also

https://redis.io/commands/eval/

Source

fn eval_readonly<R>( &mut self, builder: CallBuilder, ) -> PreparedCommand<'_, Self, R>
where Self: Sized, R: FromValue,

This is a read-only variant of the eval] command that cannot execute commands that modify data.

§Return

The return value of the script

§See Also

https://redis.io/commands/eval_ro/

Source

fn evalsha<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>
where Self: Sized, R: FromValue,

Evaluate a script from the server’s cache by its SHA1 digest.

§Return

The return value of the script

§See Also

https://redis.io/commands/eval/

Source

fn evalsha_readonly<R>( &mut self, builder: CallBuilder, ) -> PreparedCommand<'_, Self, R>
where Self: Sized, R: FromValue,

This is a read-only variant of the evalsha command that cannot execute commands that modify data.

§Return

The return value of the script

§See Also

https://redis.io/commands/evalsha_ro/

Source

fn fcall<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>
where Self: Sized, R: FromValue,

Invoke a function.

§Return

The return value of the function

§See Also

https://redis.io/commands/fcall/

Source

fn fcall_readonly<R>( &mut self, builder: CallBuilder, ) -> PreparedCommand<'_, Self, R>
where Self: Sized, R: FromValue,

Invoke a function.

§Return

The return value of the function

§See Also

https://redis.io/commands/fcall-ro/

Source

fn function_delete<L>( &mut self, library_name: L, ) -> PreparedCommand<'_, Self, ()>
where Self: Sized, L: Into<CommandArg>,

Delete a library and all its functions.

§See Also

https://redis.io/commands/function-delete/

Source

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

https://redis.io/commands/function-dump/

Source

fn function_flush( &mut self, flushing_mode: FlushingMode, ) -> PreparedCommand<'_, Self, ()>
where Self: Sized,

Deletes all the libraries.

§See Also

https://redis.io/commands/function-flush/

Source

fn function_kill(&mut self) -> PreparedCommand<'_, Self, ()>
where Self: Sized,

Kill a function that is currently executing.

§See Also

https://redis.io/commands/function-kill/

Source

fn function_list( &mut self, options: FunctionListOptions, ) -> PreparedCommand<'_, Self, Vec<LibraryInfo>>
where Self: Sized,

Return information about the functions and libraries.

§See Also

https://redis.io/commands/function-list/

Source

fn function_load<F, L>( &mut self, replace: bool, function_code: F, ) -> PreparedCommand<'_, Self, L>
where Self: Sized, F: Into<CommandArg>, L: FromValue,

Load a library to Redis.

§Return

The library name that was loaded

§See Also

https://redis.io/commands/function-load/

Source

fn function_restore<P>( &mut self, serialized_payload: P, policy: FunctionRestorePolicy, ) -> PreparedCommand<'_, Self, ()>
where Self: Sized, P: Into<CommandArg>,

Restore libraries from the serialized payload.

§See Also

https://redis.io/commands/function-restore/

Source

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

https://redis.io/commands/function-stats/

Source

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

https://redis.io/commands/script-debug/

Source

fn script_exists<S, C>( &mut self, sha1s: C, ) -> PreparedCommand<'_, Self, Vec<bool>>
where Self: Sized, S: Into<CommandArg>, C: SingleArgOrCollection<S>,

Returns information about the existence of the scripts in the script cache.

§Return

The SHA1 digest of the script added into the script cache.

§See Also

https://redis.io/commands/script-exists/

Source

fn script_flush( &mut self, flushing_mode: FlushingMode, ) -> PreparedCommand<'_, Self, ()>
where Self: Sized,

Flush the Lua scripts cache.

§See Also

https://redis.io/commands/script-flush/

Source

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.

§See Also

https://redis.io/commands/script-kill/

Source

fn script_load<S, V>(&mut self, script: S) -> PreparedCommand<'_, Self, V>
where Self: Sized, S: Into<CommandArg>, V: FromValue,

Load a script into the scripts cache, without executing it.

§Return

The SHA1 digest of the script added into the script cache.

§See Also

https://redis.io/commands/script-load/

Implementors§