This is an old revision of the document!
set
Store a key/value pair, if the key exists already, overwrite it.
syntax:
set <key> <flags> <TTL> <length> [noreply] \r\n <value> \r\n
parameters:
- flags - A 32-bit unsigned integer that the server stores with the data provided by the user, and returns along with the data when the item is retrieved.
- TTL
- length
- noreply
- value
example:
set mykey 0 120 10 myvalueabc STORED
output notes: