Skip to main content

A client cli for Memcached Server,which write by python.

Project description


sudo apt-get install memcached




  • 通过`-b`或`–host`修改监听的地址
  • 通过`-p`或`–port`修改监听的端口

然后我们可以进行如下的操作:>get name
None>set name zhangsan
True>get name

我们直接调用Memcached对应的命令传入对应的参数即可。 如果对某个命令不是很熟悉,可以通过输入1个`help`来查看当前支持的命令:>help

Documented commands (type help <topic>):
EOF     check_key  delete_many   get        gets_many  quit      set_multi
add     close      delete_multi  get_many   help       replace   stats
append  decr       exit          get_multi  incr       set       touch
cas     delete     flush_all     gets       prepend    set_many  version

而后通过`help 对应的命令`查看其详细的参数说明:>help get

The memcached "get" command, but only for one key, as a convenience.

          key: str, see class docs for details.

          The value for the key, or None if the key wasn't found.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Memcached-cli, version 0.1.dev0
Filename, size File type Python version Upload date Hashes
Filename, size Memcached_cli-0.1.dev0-py2.7.egg (5.3 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size Memcached-cli-0.1.dev0.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page