VISMEMBER

Syntax
VISMEMBER key element
Available since:
Redis Open Source 8.0.0
Time complexity:
O(1)
Compatibility:
Redis Enterprise and Redis Cloud compatibility

Check if an element exists in a vector set.

Required arguments

key

is the name of the key that holds the vector set.

element

is the name of the element you want to check for membership.

Redis Enterprise and Redis Cloud compatibility

Redis
Enterprise
Redis
Cloud
Notes
✅ Standard
✅ Active-Active
✅ Standard
✅ Active-Active

Return information

Integer reply: 0 if the element does not exist in the vector set, or the key does not exist. 1 if the element exists in the vector set.
RATE THIS PAGE
Back to top ↑