summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/exists.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-04 07:19:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-04 07:19:32 +0000
commit7480e618ec785ba8a1c74c8a150cffe5880fb3bb (patch)
tree87422376dd9a7eee55850f0fce9a8bb4c13e44a2 /iredis/data/commands/exists.md
parentAdding upstream version 1.12.1. (diff)
downloadiredis-7480e618ec785ba8a1c74c8a150cffe5880fb3bb.tar.xz
iredis-7480e618ec785ba8a1c74c8a150cffe5880fb3bb.zip
Adding upstream version 1.13.0.upstream/1.13.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'iredis/data/commands/exists.md')
-rw-r--r--iredis/data/commands/exists.md20
1 files changed, 2 insertions, 18 deletions
diff --git a/iredis/data/commands/exists.md b/iredis/data/commands/exists.md
index 83c2043..a9a89af 100644
--- a/iredis/data/commands/exists.md
+++ b/iredis/data/commands/exists.md
@@ -1,26 +1,10 @@
Returns if `key` exists.
-Since Redis 3.0.3 it is possible to specify multiple keys instead of a single
-one. In such a case, it returns the total number of keys existing. Note that
-returning 1 or 0 for a single key is just a special case of the variadic usage,
-so the command is completely backward compatible.
-
-The user should be aware that if the same existing key is mentioned in the
-arguments multiple times, it will be counted multiple times. So if `somekey`
-exists, `EXISTS somekey somekey` will return 2.
+The user should be aware that if the same existing key is mentioned in the arguments multiple times, it will be counted multiple times. So if `somekey` exists, `EXISTS somekey somekey` will return 2.
@return
-@integer-reply, specifically:
-
-- `1` if the key exists.
-- `0` if the key does not exist.
-
-Since Redis 3.0.3 the command accepts a variable number of keys and the return
-value is generalized:
-
-- The number of keys existing among the ones specified as arguments. Keys
- mentioned multiple times and existing are counted multiple times.
+@integer-reply, specifically the number of keys that exist from those specified as arguments.
@examples