kevy4.0

EXISTS

Count how many of the given keys exist.

EXISTS key [key ...]
Group
Generic
Since
1.0.0
Arity
at least 2
Flags
readonly

Complexity

O(N) keys, one O(1) probe each

Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.

Redis compatibility

Differs

the multi-key form is gathered per shard, so the count is not a point-in-time snapshot across shards

See also

DELEXPIREEXPIREATPERSISTPEXPIREPEXPIREATPTTLRENAMERENAMENXTTLTYPEUNLINK

← All commands