pexpire method

Future<bool> pexpire(
  1. String key,
  2. Duration timeout
)

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;
}