VGETATTR

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

Return the JSON attributes associated with an element in a vector set.

VGETATTR key element

Required arguments

key

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

element

is the name of the element whose attributes you want to retrieve.

Redis Enterprise and Redis Cloud compatibility

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

Return information

One of the following:

  • Simple string reply containing the JSON attribute(s).
  • Bulk string reply (null bulk string) for unknown key or element, or when no attributes exist for the given key/element pair.