A simple memcached CLI tool, with SASL supported. Built upon memjs.
# npm
npm install -g memcached-cli
# yarn
yarn global add memcached-cliRun 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.
Get the value of a key
> get <key>
Set the value of a key, default expires(s) is 0
> set <key> <value> [expires]
Set the value of a key, fail if key exists
> add <key> <value> [expires]
Overwrite existing key, fail if key not exists
> replace <key> <value> [expires]
Delete a key
> delete <key>
Flush all data
> flush
Show statistics
> stats
memcached-cli is built upon memjs. Visit memjs documentation for more information.
MIT