member

UK[ˈmembə(r)] US[ˈmɛmbɚ]

n. Member; molecule; body part (especially arm or leg); component , parts

plural: members

redis SISMEMBER command syntax

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 command example

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