Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
litespeed_wiki:lsmcd:commands:replace [2016/04/06 21:19] Rob Holda created |
litespeed_wiki:lsmcd:commands:replace [2016/04/07 18:42] Rob Holda |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== replace ===== | ===== replace ===== | ||
- | Store a key/value pair, but only if it already exists. If the key/value pair does not already exist, returns "NOT_STORED". | + | Store a key/value pair, but only if it already exists. |
**syntax:** | **syntax:** | ||
Line 32: | Line 32: | ||
* **10** → data is 10 bytes long | * **10** → data is 10 bytes long | ||
* **myvalueabc** → "mykey" will be associated with the value "myvalueabc" | * **myvalueabc** → "mykey" will be associated with the value "myvalueabc" | ||
+ | |||
+ | **possible errors:** | ||
+ | * **NOT_STORED** - Indicates that the provided key does not already exist in the LSMCD server so the data associated with that key could not be updated. |