Skip to main content

valkey_command

Function valkey_command 

Source
pub fn valkey_command(name: &'static str) -> ValkeyCommand
Expand description

Starts a command with a compile-time command name.

Restricting the name to a static string ensures external input cannot select administrative commands. Applications should add untrusted values only as encoded arguments and namespace every application-owned key with crate::ValkeyConnector::namespaced_key.