SET
Synopsis
SET key string_value [EX seconds] [PX milliseconds] [NX|XX]
This command inserts string_value to be hold at key, where EX seconds sets the expire time in seconds, PX milliseconds sets the expire time in milliseconds, NX sets the key only if it does not already exist, and XX sets the key only if it already exists.
Return Value
Returns status string.
Examples
$ SET yugakey "Yugabyte"
"OK"
$ GET yugakey
"Yugabyte"
See also
append, get, getrange, getset, incr, incrby, setrange, strlen