Skip to content

EXISTS

Syntax

EXISTS key [key ...]

EXISTS command returns the count of keys that exist among the given arguments without modifying them.

Examples

localhost:7379> SET k1 v1
OK
localhost:7379> SET k2 v2
OK
localhost:7379> EXISTS k1 k2 k3
OK 2