jsonSet method

Future<void> jsonSet({
  1. required String key,
  2. String path = '\$',
  3. required dynamic value,
  4. bool nx = false,
  5. bool xx = false,
})

jsonObjkeys todo待解决 jsonSet

Implementation

// Future<JsonObjkeys> jsonObjkeys(
//   String key, {
//   String path = '\$',
// }) async {
//   List<RespType<dynamic>>? result = await _runWithRetryNew(() async {
//     (await RespCommandsTier1(_client!).jsonObjkeys(
//       key: key,
//       path: path,
//     ))
//         .toArray()
//         .payload;
//   });
//
//   return JsonObjkeys.fromResult(result);
// }

/// jsonSet
Future<void> jsonSet({
  required String key,
  String path = '\$',
  required dynamic value,
  bool nx = false,
  bool xx = false,
}) async {
  await _runWithRetryNew(() async {
    (await RespCommandsTier1(_client!)
            .jsonSet(key: key, path: path, value: value, nx: nx, xx: xx))
        .toSimpleString();
  });
  return null;
}