--- arguments: - name: key type: key - name: element type: string arity: 3 categories: - docs - develop - stack - oss - rs - rc - oss - kubernetes - clients command_flags: - READONLY complexity: O(1) description: Check if an element exists in a vector set. function: vismemberCommand group: vector_set hidden: false linkTitle: VISMEMBER railroad_diagram: /images/railroad/vismember.svg since: 8.0.0 summary: Check if an element exists in a vector set. syntax_fmt: VISMEMBER key element title: VISMEMBER --- 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.
## Related topics - [Vector sets]({{< relref "/develop/data-types/vector-sets" >}}) ## Redis Software and Redis Cloud compatibility | Redis
Software | Redis
Cloud | Notes | |:----------------------|:-----------------|:------| | ✅ Standard
✅ Active-Active | ✅ Standard
✅ Active-Active | | ## Return information {{< multitabs id="vismember-return-info" tab1="RESP2" tab2="RESP3" >}} [Integer reply](../../develop/reference/protocol-spec#integers): `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. -tab-sep- [Boolean reply](../../develop/reference/protocol-spec#booleans): `false` if the element does not exist in the vector set, or the key does not exist. `true` if the element exists in the vector set. {{< /multitabs >}}