exists 判断一个键是否存在

127.0.0.1:6379> set ad 121
OK
127.0.0.1:6379> exists ad
(integer) 1

results matching ""

    No results matching ""