Arguments
string
required
The key
TValue
required
The value, if this is not a string, we will use
JSON.stringify to convert it
to a string.object
You can pass a few options to the command.
Response
"OK"Set a key to hold a string value.
JSON.stringify to convert it
to a string."OK"Related topics
SETRedis® API Compatibility: supported commands, modules, and protocolsJSON.SETSet Index Plan