Function set_remote_state

Source
pub fn set_remote_state(key: &str, value: &[u8]) -> Result<(), RemoteStateError>
Expand description

Set a named value in Redis.

In order for this function to succeed, a plugin’s configuration must explicitly declare a permission grant for the prefix of the key being requested. This function will panic if permission has not been granted.

§Arguments

  • key - The key name corresponding to the state value.
  • value - The value to record. Values are byte strings, but may be interpreted differently by Redis depending on context.