expire method
expire
Implementation
Future<bool> expire(String key, Duration timeout) async {
Object result = await _runWithRetryNew(() async {
return (await RespCommandsTier1(_client!).expire(key, timeout));
});
if (result is RespType2<dynamic>) {
return result.toInteger().payload == 1;
}
return (result as RespType3<dynamic>).toInteger().payload == 1;
}