英[set] 美[sɛt]

vt. Set; place, arrange; put in a certain situation; place tableware

vi.fall; set off; condense

n. Collection; a set, a pair; a set; a television set

adj. Fixed; located in...; stubborn; arranged

Third person singular: sets plural : sets present participle: setting past tense: set past participle: set

memcached set command syntax

Function: Used to store value (data value) in the specified key (key). If the set key already exists, this command can update the original data corresponding to the key, which is to achieve the update function.

Syntax: set key flags exptime bytes [noreply] value

Parameters:

ParametersDescription
keyKey value The key in the key-value structure is used to find the cache value.
#flagsCan include integer parameters of key-value pairs, which are used by the client to store additional information about the key-value pairs.
exptimeThe length of time (in seconds, 0 means forever) to keep key-value pairs in the cache.
bytesThe number of bytes stored in the cache.
noreplyOptional, this parameter tells the server that no data needs to be returned.
valueThe stored value (always located in the second line) (can be directly understood as the value in the key-value structure).

memcached set command example

set runoob 0 900 9
memcachedSTORED
get runoob
VALUE runoob 0 9
memcached
END