SISMEMBER
Syntax
SISMEMBER key member
- Available since:
- Redis Open Source 1.0.0
- Time complexity:
- O(1)
- ACL categories:
-
@read,@set,@fast, - Compatibility:
- Redis Enterprise and Redis Cloud compatibility
Returns if member is a member of the set stored at key.
Examples
Redis Enterprise and Redis Cloud compatibility
| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Standard |
✅ Standard |
Return information
One of the following:
- Integer reply:
0if the element is not a member of the set, or when the key does not exist. - Integer reply:
1if the element is a member of the set.