expire method

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

expire

Implementation

Future<bool> expire(String key, Duration timeout) async {
  return await _runWithRetryNew(() async {
    return (await RespCommandsTier1(_client!).expire(key, timeout))
            .toInteger()
            .payload ==
        1;
  });
}