Hash
HEXISTS
Checks if a field exists in a hash.
Arguments
keybodystrrequired
The key to get.
fieldbodystrrequired
The field to check.
Response
boolrequired
True if the hash contains field. False if the hash does not contain field, or key does not exist.
Example
redis.hset("key", "field", "value")assert redis.hexists("key", "field") == True