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 (await tier1.pexpire(key, timeout)).toInteger().payload == 1;
}