1.0.3 • Published 5 years ago

memcached-cli v1.0.3

Weekly downloads
47
License
MIT
Repository
github
Last release
5 years ago

memcached-cli

npm

A simple memcached CLI tool, with SASL supported. Built upon memjs.

Installation

npm install -g memcached-cli

You can also use npx memcached-cli to run it directly.

Usage

Run

> memcached-cli host:port

to enter interactive shell. If host and port is not specified, localhost:11211 will be used.

If you use SASL auth, run

> memcached-cli username:password@host:port
MethodDescriptionCommand
getGet the value of a key> get <key>
setSet the value of a key, default expires(s) is 0> set <key> <value> [expires]
addSet the value of a key, fail if key exists> add <key> <value> [expires]
replaceOverwrite existing key, fail if key not exists> replace <key> <value> [expires]
incrementIncrement the value of a key by amount> increment <key> <amount> [expires]
decrementDecrement the value of a key by amount> decrement <key> <amount> [expires]
deleteDelete a key> delete <key>
flushFlush all data> flush
statsShow statistics> stats

memcached-cli is built upon memjs. Visit memjs documentation for more information.

License

MIT

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

7 years ago

1.0.0

7 years ago