VGETATTR
VGETATTR key element
- Available since:
- Redis Open Source 8.0.0
- Time complexity:
- O(1)
- Compatibility:
- Redis Software 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.
Related topics
Redis Software and Redis Cloud compatibility
| Redis Software |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Standard |
✅ Standard |
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.