AttentionThis page documents an earlier version. Go to the latest (v2.0)version.
SET key string_value [EX seconds] [PX milliseconds] [NX|XX]
This command inserts
string_value to be hold at
EX seconds sets the expire time in
PX milliseconds sets the expire time in
NX sets the key only if it does not already exist, and
XX sets the key only if it already exists.
keyis already associated with a value, it is overwritten regardless of its type.
key, such as datatype and time to live, are discarded.
Returns status string.
$ SET yugakey "Yugabyte"
$ GET yugakey