memcached-cli

1.0.3 • Public • Published

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
Method Description Command
get Get the value of a key > get <key>
set Set the value of a key, default expires(s) is 0 > set <key> <value> [expires]
add Set the value of a key, fail if key exists > add <key> <value> [expires]
replace Overwrite existing key, fail if key not exists > replace <key> <value> [expires]
increment Increment the value of a key by amount > increment <key> <amount> [expires]
decrement Decrement the value of a key by amount > decrement <key> <amount> [expires]
delete Delete a key > delete <key>
flush Flush all data > flush
stats Show statistics > stats

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

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i memcached-cli

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

7.12 kB

Total Files

4

Last publish

Collaborators

  • pd4d10