memcached set command
Translation results:
英[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 commandsyntax
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:
Parameters | Description |
key | Key value The key in the key-value structure is used to find the cache value. |
#flags | Can include integer parameters of key-value pairs, which are used by the client to store additional information about the key-value pairs. |
exptime | The length of time (in seconds, 0 means forever) to keep key-value pairs in the cache. |
bytes | The number of bytes stored in the cache. |
noreply | Optional, this parameter tells the server that no data needs to be returned. |
value | The stored value (always located in the second line) (can be directly understood as the value in the key-value structure). |
memcached set commandexample
set runoob 0 900 9 memcachedSTORED get runoob VALUE runoob 0 9 memcached END