pub fn set_remote_ttl(key: &str, ttl: i64) -> Result<(), RemoteStateError>
Expand description
Sets an expiration on 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.ttl
- The time-to-live for the value in seconds.