jsonDel method

Future<int> jsonDel(
  1. String key, {
  2. String path = '\$',
})

jsonDel

Implementation

Future<int> jsonDel(String key, {String path = '\$'}) async {
  Object result = await _runWithRetryNew(() async {
    return (await RespCommandsTier1(_client!).jsonDel(key: key, path: path));
  });

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

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