Back to Redis

VCARD

content/commands/vcard.md

latest1.2 KB
Original Source

Return the number of elements in the specified vector set.

shell
VCARD word_embeddings
(integer) 3000000

Required arguments

<details open> <summary><code>key</code></summary>

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

</details>
  • [Vector sets]({{< relref "/develop/data-types/vector-sets" >}})

Redis Software and Redis Cloud compatibility

| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Standard</span> <span title="Not supported"><nobr>❌ Active-Active</nobr></span> | <span title="Supported">✅ Standard</span> <span title="Not supported"><nobr>❌ Active-Active</nobr></span> | |

Return information

{{< multitabs id="vcard-return-info" tab1="RESP2" tab2="RESP3" >}}

Integer reply: 0 if the key doesn't exist or the number of elements contained in the vector set.

-tab-sep-

Integer reply: 0 if the key doesn't exist or the number of elements contained in the vector set.

{{< /multitabs >}}