EXISTS key [key ...]
- Available since:
- Time complexity:
- O(N) where N is the number of keys to check.
- ACL categories:
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
EXISTS somekey somekey will return 2.
RESP2/RESP3 ReplyInteger reply: the number of keys that exist from those specified as arguments.
- Starting with Redis version 3.0.3: Accepts multiple