Function increment_remote_state

Source
pub fn increment_remote_state(key: &str) -> Result<i64, RemoteStateError>
Expand description

Increments a named counter in Redis.

Returns the value of the counter after it’s incremented.

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 counter.