jsonMget method

Future<List<String?>> jsonMget(
  1. List<String> keys, {
  2. String path = '\$',
})

jsonMget

Implementation

Future<List<String?>> jsonMget(List<String> keys,
    {String path = '\$'}) async {
  return await _runWithRetryNew(() async {
    final result =
        (await RespCommandsTier1(_client!).jsonMget(keys: keys, path: path))
            .toArray()
            .payload;

    if (result != null) {
      return result
          .map((e) => e.toBulkString().payload)
          .toList(growable: false);
    }
    return [];
  });
}