VISMEMBER

Syntax
VISMEMBER key element
Available since:
Redis Open Source 8.0.0
Time complexity:
O(1)

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.

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 ↑