hexists method

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

Returns if field is an existing field in the hash stored at key.

True, if the hash contains field. False, if the hash does not contain field, or key does not exist.

Implementation

Future<bool> hexists(String key, String field) async {
  final result = _getInteger(await _execCmd(['HEXISTS', key, field]));
  return result == 1;
}