VGETATTR

Syntax
VGETATTR key element
Available since:
Redis CE 8.0.0
Time complexity:
O(1)

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.

RESP2 Reply

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.

RESP3 Reply

One of the following:

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

RATE THIS PAGE
Back to top ↑