hexists method

Future<bool> hexists(
  1. String key,
  2. String field
)

hexists

Implementation

Future<bool> hexists(String key, String field) async {
  Object result = await _runWithRetryNew(() async {
    return (await RespCommandsTier1(_client!).hexists(key, field));
  });

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

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