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 _getInteger(await _execCmd(['PEXPIRE', key, timeout.inMilliseconds])) == 1;
}