decr method

  1. @override
Future<int?> decr(
  1. K key
)
override

Implementation

@override
Future<int?> decr(K key) async {
  final keyString = keyCodec.encode<K>(key);
  _connection.sendCommand(Resp(['DECR', keyString]));
  final res = await _connection.receive();
  res.throwIfError();
  return res.integerValue;
}