decrby method

Future<int> decrby(
  1. String key,
  2. int increment
)

decrby

Implementation

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

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

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