pub fn increment_remote_state_by(
key: &str,
delta: i64,
) -> Result<i64, RemoteStateError>
Expand description
Increments a named counter in Redis by a specified delta value.
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.delta
- The amount to increase the counter by.