Skip to content

Commit 664eab5

Browse files
authored
DEV: add TCEs to EXISTS command (#2036)
* DEV: add TCEs to EXISTS command * Fix build errors/warnings * Refactored invalid examples and restructured * Apply suggestions from code review
1 parent 5dffa76 commit 664eab5

File tree

9 files changed

+1459
-0
lines changed

9 files changed

+1459
-0
lines changed

content/commands/exists.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ The user should be aware that if the same existing key is mentioned in the argum
5858

5959
## Examples
6060

61+
{{< clients-example set="cmds_generic" step="exists" >}}
62+
SET key1 "Hello"
63+
EXISTS key1
64+
EXISTS nosuchkey
65+
SET key2 "World"
66+
EXISTS key1 key2 nosuchkey
67+
{{< /clients-example >}}
68+
69+
Give these commands a try in the interactive console:
70+
6171
{{% redis-cli %}}
6272
SET key1 "Hello"
6373
EXISTS key1

0 commit comments

Comments
 (0)