Skip to content

Commit 1ed1e0e

Browse files
Update hashes.md
1 parent 0540794 commit 1ed1e0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ds/hashes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ HGET bike:1 price
2222

2323
You can update fields in a hash using `HSET` by specifying a subset of its name-value pairs.
2424

25-
```redis Update an existing hash
25+
```redis:[run_confirmation=true] Update an existing hash
2626
HSET bike:1 model "Kraken" price 3000
2727
```
2828

2929
Use the `HDEL` command to delete one or more fields from a hash. Once all fields are removed, the hash key itself will be deleted.
3030

31-
```redis Delete hash fields and keys
31+
```redis:[run_confirmation=true] Delete hash fields and keys
3232
HDEL bike:1 model
3333
HGETALL bike:1
3434
HDEL bike:1 brand type price

0 commit comments

Comments
 (0)