pexpire method
Sets the timeout for the given key
. Returns true
,
if the timeout was successfully set. Otherwise,
false
is returned.
Implementation
Future<bool> pexpire(String key, Duration timeout) async {
return (await tier1.pexpire(key, timeout)).toInteger().payload == 1;
}