Skip to content

Commit f93c8a6

Browse files
authored
Add example for DIGEST command in documentation (#2411)
Add example usage for DIGEST command in Redis.
1 parent 29f3dc2 commit f93c8a6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

content/commands/digest.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ A hash digest is a fixed-size numerical representation of a string value, comput
5959
|:----------------------|:-----------------|:------|
6060
| <span title="Not supported">&#x274c; Standard</span><br /><span title="Not supported"><nobr>&#x274c; Active-Active</nobr></span> | <span title="Not supported">&#x274c; Standard</span><br /><span title="Not supported"><nobr>&#x274c; Active-Active</nobr></span> | |
6161

62+
## Example
63+
64+
```bash
65+
> SET key1 "Hello world"
66+
OK
67+
> DIGEST key1
68+
"b6acb9d84a38ff74"
69+
```
70+
6271
## Return information
6372

6473
{{< multitabs id="return-info"

0 commit comments

Comments
 (0)