英[ɪgˈzɪst] 美[ɪɡˈzɪst]
##vi.Existence; survive; live; continue to existThird person singular: exists Present participle: existing Past tense: existed Past participle: existed
redis EXISTS command syntax
Function: Check whether the given key exists.
Syntax: EXISTS key
Available versions: >= 1.0.0
Time complexity: O(1)
Return: If key exists, return 1, otherwise return 0.
redis EXISTS command example
redis> SET db "redis" OK redis> EXISTS db (integer) 1 redis> DEL db (integer) 1 redis> EXISTS db (integer) 0