redis SISMEMBER command
Translation results:
member
UK[ˈmembə(r)] US[ˈmɛmbɚ]
n. Member; molecule; body part (especially arm or leg); component , parts
plural: members
redis SISMEMBER commandsyntax
Function: Determine whether the member element is a member of the set key.
Syntax: SISMEMBER key member
Available versions:>= 1.0.0
Time complexity : O(1)
Return: If the member element is a member of the collection, return 1. If the member element is not a member of the set, or key does not exist, 0 is returned.
redis SISMEMBER commandexample
redis> SMEMBERS joe's_movies 1) "hi, lady" 2) "Fast Five" 3) "2012" redis> SISMEMBER joe's_movies "bet man" (integer) 0 redis> SISMEMBER joe's_movies "Fast Five" (integer) 1