Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
litespeed_wiki:lsmcd:interaction [2016/04/06 19:34] Rob Holda [LSMCD Commands] |
litespeed_wiki:lsmcd:interaction [2016/04/06 18:55] (current) Rob Holda [get] |
||
---|---|---|---|
Line 8: | Line 8: | ||
====== LSMCD Commands ====== | ====== LSMCD Commands ====== | ||
- | The following is a list of LSMCD commands useable in telnet, each with a description, the commands syntax, an example of use (including user input and system output separated by an empty line), and an explanation of potentially confusing values. Note: for syntax, < and > indicate a required value while [ and ] indicate an optional one. | + | The following is a list of LSMCD commands useable in telnet, each with a description, an example use (including user input and system output), syntax, and an explanation of potentially confusing values. Note: for syntax, < and > indicate a required value while [ and ] indicate an optional one. |
===== get ===== | ===== get ===== | ||
Line 41: | Line 41: | ||
<code> | <code> | ||
bget mykey | bget mykey | ||
- | + | </code> | |
- | VALUE mykey 0 10 | + | **output:** |
- | 1011101010 | + | <code>VALUE mykey 0 10 |
- | END</code> | + | myvalueabc |
+ | END</code> | ||
**output notes:** | **output notes:** | ||
* **0** → no flags | * **0** → no flags | ||
Line 60: | Line 61: | ||
<code> | <code> | ||
gets mykey | gets mykey | ||
+ | </code> | ||
+ | **output:** | ||
+ | <code> | ||
VALUE mykey 0 10 9 | VALUE mykey 0 10 9 | ||
- | myvalueabc | + | myvalueabc |
- | END | + | END |
</code> | </code> | ||
**output notes:** | **output notes:** | ||
Line 80: | Line 83: | ||
<code> | <code> | ||
add newkey 0 120 10 | add newkey 0 120 10 | ||
+ | </code> | ||
+ | **output:** | ||
+ | <code> | ||
myvalueabc | myvalueabc | ||
- | + | STORED | |
- | STORED | + | |
</code> | </code> | ||
**output notes:** | **output notes:** | ||
Line 100: | Line 105: | ||
<code> | <code> | ||
set mykey 0 120 10 | set mykey 0 120 10 | ||
+ | </code> | ||
+ | **output:** | ||
+ | <code> | ||
myvalueabc | myvalueabc | ||
- | + | STORED | |
- | STORED | + | |
</code> | </code> | ||
**output notes:** | **output notes:** | ||
Line 121: | Line 128: | ||
<code> | <code> | ||
replace mykey 0 120 10 | replace mykey 0 120 10 | ||
+ | </code> | ||
+ | **output:** | ||
+ | <code> | ||
myvalueabc | myvalueabc | ||
- | + | STORED | |
- | STORED | + | |
</code> | </code> | ||
**output notes:** | **output notes:** | ||
Line 141: | Line 150: | ||
<code> | <code> | ||
append mykey 0 120 10 | append mykey 0 120 10 | ||
+ | </code> | ||
+ | **output:** | ||
+ | <code> | ||
defghijklm | defghijklm | ||
- | + | STORED | |
- | STORED | + | |
</code> | </code> | ||
**output notes:** | **output notes:** | ||
Line 161: | Line 172: | ||
<code> | <code> | ||
prepend mykey 0 120 10 | prepend mykey 0 120 10 | ||
+ | </code> | ||
+ | **output:** | ||
+ | <code> | ||
abcdeabcde | abcdeabcde | ||
- | + | STORED | |
- | STORED | + | |
</code> | </code> | ||
**output notes:** | **output notes:** | ||
Line 181: | Line 194: | ||
<code> | <code> | ||
cas mykey 0 120 10 2 | cas mykey 0 120 10 2 | ||
+ | </code> | ||
+ | **output:** | ||
+ | <code> | ||
abcdeabcde | abcdeabcde | ||
- | + | STORED | |
- | STORED | + | |
</code> | </code> | ||
**output notes:** | **output notes:** | ||
Line 201: | Line 216: | ||
<code> | <code> | ||
incr mykey 4 | incr mykey 4 | ||
+ | </code> | ||
+ | **output:** | ||
+ | <code> | ||
5 | 5 | ||
</code> | </code> | ||
Line 218: | Line 235: | ||
<code> | <code> | ||
decr mykey 3 | decr mykey 3 | ||
+ | </code> | ||
+ | **output:** | ||
+ | <code> | ||
2 | 2 | ||
</code> | </code> | ||
Line 235: | Line 254: | ||
<code> | <code> | ||
delete mykey | delete mykey | ||
+ | </code> | ||
+ | **output:** | ||
+ | <code> | ||
DELETED | DELETED | ||
</code> | </code> | ||
Line 249: | Line 270: | ||
<code> | <code> | ||
touch mykey 1200 | touch mykey 1200 | ||
+ | </code> | ||
+ | **output:** | ||
+ | <code> | ||
TOUCHED | TOUCHED | ||
</code> | </code> | ||
Line 265: | Line 288: | ||
<code> | <code> | ||
stats | stats | ||
+ | </code> | ||
+ | **output:** | ||
+ | <code> | ||
STAT pid 16825 | STAT pid 16825 | ||
STAT version 1.0.0 | STAT version 1.0.0 | ||
Line 295: | Line 320: | ||
<code> | <code> | ||
stats reset | stats reset | ||
+ | </code> | ||
+ | **output:** | ||
+ | <code> | ||
RESET | RESET | ||
</code> | </code> | ||
Line 309: | Line 336: | ||
<code> | <code> | ||
flush_all | flush_all | ||
+ | </code> | ||
+ | **output:** | ||
+ | <code> | ||
OK | OK | ||
</code> | </code> | ||
Line 323: | Line 352: | ||
<code> | <code> | ||
version | version | ||
+ | </code> | ||
+ | **output:** | ||
+ | <code> | ||
VERSION 1.0.0 | VERSION 1.0.0 | ||
</code> | </code> | ||
Line 337: | Line 368: | ||
<code> | <code> | ||
quit | quit | ||
+ | </code> | ||
+ | **output:** | ||
+ | <code> | ||
Connection closed by foreign host. | Connection closed by foreign host. | ||
</code> | </code> | ||
Line 351: | Line 384: | ||
<code> | <code> | ||
verbosity 1 | verbosity 1 | ||
+ | </code> | ||
+ | **output:** | ||
+ | <code> | ||
OK | OK | ||
</code> | </code> |