HDEL
Note
Official reference: HDEL.
Remove fields from a hash.
Syntax
HDEL key field [field ...]
Results
| Return | Rows | Content |
|---|---|---|
| Update count | -- | Number of fields deleted from the hash, not including non-existing fields. Returns 0 if the key does not exist. |
Example
HSET demo:user name mali age 18
HDEL demo:user age