Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
litespeed_wiki:lsmcd:commands:set [2016/04/06 21:14] Rob Holda |
litespeed_wiki:lsmcd:commands:set [2016/04/07 18:52] Rob Holda |
||
---|---|---|---|
Line 8: | Line 8: | ||
**parameters:** | **parameters:** | ||
+ | * **key** - The name of the unique key by which data is accessed. | ||
* **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. | * **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** - The length of time (in seconds) the key/value pair will be stored in cache. A 0 value means the data will “never expire” and should not be removed from the cache unless required. If the TTL is more than 30 days then LSMCD interprets it as UNIX timestamp for expiration. | * **TTL** - The length of time (in seconds) the key/value pair will be stored in cache. A 0 value means the data will “never expire” and should not be removed from the cache unless required. If the TTL is more than 30 days then LSMCD interprets it as UNIX timestamp for expiration. | ||
Line 27: | Line 28: | ||
* **10** → data is 10 bytes long | * **10** → data is 10 bytes long | ||
* **myvalueabc** → “newkey” will be associated with the value “myvalueabc” | * **myvalueabc** → “newkey” will be associated with the value “myvalueabc” | ||
+ | |||
+ | **possible errors:** | ||
+ | * **ERROR** - Indicates incorrect syntax or an error while saving. |