Redis

EXISTS key

Returns if key exists.

Return value

Integer reply, specifically:

Examples

redis>  SET key1 "Hello"
OK
redis>  EXISTS key1
(integer) 1
redis>  EXISTS key2
(integer) 0
redis> 
Comments powered by Disqus