Deletes one or more hash fields.
redis.hset("myhash", "field1", "Hello") redis.hset("myhash", "field2", "World") assert redis.hdel("myhash", "field1", "field2") == 2
The key to get.
One or more fields to delete.
The number of fields that were removed from the hash.
Was this page helpful?