LSMCD Commands

In order to connect to and interact with LSMCD, you can use telnet to connect to a one of the IP addresses and port numbers set in Cached.Addr. For example, with the default settings, you would connect using the following command:

telnet 127.0.0.1 11211

The following is a list of LSMCD commands useable in telnet, each with a brief description. For more information, see each command's page.

get - Read the value tied to the user-provided key.

bget - Read the binary value tied to the user-provided key.

gets - Read the value tied to the user-provided key and its cas token (to be used with the cas command).

add - Add a key/value pair only if a pair does not already exist for the user-provided key.

set - Store a key/value pair. If a pair already exists for the user-provided key, overwrites it.

replace - Store a key/value pair, but only if it already exists.

append - Add data to an existing key after existing data.

prepend - Add data to an existing key before existing data.

cas - Check-and-Set an item; store data only if no one else has updated since the last fetch, determined with the cas token from the gets command.

incr - Increment a numerical key’s value by the given number if the key/value pair exists.

decr - Decrement a numerical key's value by the given number if the key/value pair exists.

delete - Delete an existing key/value pair.

touch - Update the expiration time for a key/value pair without fetching it.

stats - Print or reset general statistics.

flush_all - Delete all key/value pairs immediately.

version - Print LSMCD server version.

quit - Terminate telnet session.

verbosity - Change the verbosity level of the output of LSMCD.

  • Admin
  • Last modified: 2016/04/07 19:36
  • by Rob Holda