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 {
  return (await tier1.hexists(key, field)).toInteger().payload == 1;
}