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 v1OKlocalhost:7379> SET k2 v2OKlocalhost:7379> EXISTS k1 k2 k3OK 2
EXISTS key [key ...]
EXISTS command returns the count of keys that exist among the given arguments without modifying them.
localhost:7379> SET k1 v1OKlocalhost:7379> SET k2 v2OKlocalhost:7379> EXISTS k1 k2 k3OK 2