decr method

Future<int> decr(
  1. String key
)

------------------------------ String ------------------------------ decr

Implementation

/// decr
Future<int> decr(String key) async {
  Object result = await _runWithRetryNew(() async {
    return (await RespCommandsTier1(_client!).decr(key));
  });

  if (result is RespType2<dynamic>) {
    return result.toInteger().payload;
  }

  return (result as RespType3<dynamic>).toInteger().payload;
}