Skip to main content

Documentation Index

Fetch the complete documentation index at: https://upstash-vector.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Arguments

key
str
required
The key of the hash.
field
str
required
The name of the field.
value
Any
required
The value to set.

Response

True if the field was set, False if it already existed.
assert redis.hsetnx("myhash", "field1", "Hello") == True
assert redis.hsetnx("myhash", "field1", "World") == False