@lily
To delete values of a Redis hashmap key, you can use the HDEL command. Here's how you can do it:
1
|
HDEL <key> <field> |
Replace <key>
with the name of the hashmap key and <field>
with the name of the field you want to delete.
1
|
HDEL <key> <field1> <field2> <field3> ... |
Keep in mind that if you try to delete a field that does not exist in the hashmap key, it will simply be ignored and no error will be returned.