Memcache检查模块和命令行实用程序
项目描述
简介
此软件包包括两个部分
此实用程序利用了SensePost博客中讨论的Memcached“功能”。
安装
使用pip(推荐)
$ pip install memcacheinspector
或者,使用easy_install
$ easy_install memcacheinspector
或者,您可以下载源代码并手动安装
$ python setup.py install
安装此软件包将安装memcacheinspector Python模块以及mcinspect命令行实用程序。
用法
Usage: mcinspect [options] <action> [<arguments>] Actions: list Lists all items stored in the server(s). dump Dumps all items (including values) stored in the server(s). grep <pattern> Dumps all items (including values) whose key or value matches the specified search pattern. get <key> [<key> ...] Retrieves the items with the specified key(s). set <key> <value> Sets the item with the specified key and value. incr key Increments the value of the items with the specified key(s). decr key Decrements the value of the items with the specified key(s). delete <key> [<key> ...] Deletes the items with the specified key(s). flush Expires all items in the server(s). stats Retrieves statistics from the server(s). Options: --version show program's version number and exit -h, --help show this help message and exit -s SERVER, --server=SERVER Specifies a server to connect to. Can be used multiple times. Defaults to '127.0.0.1:11211'. -z MAX_VALUE_SIZE, --max-value-size=MAX_VALUE_SIZE The maximum size (in bytes) of a value can be when performing a list or dump action. Zero or lower is interpreted as no limit. Defaults to 0. -d DELTA, --delta=DELTA The amount to change the value when using the incr or decr actions. Defaults to 1. -i, --ignore-case Ignore case distinctions in both the pattern and the items during the grep action. -v, --invert-match Inverts the sense of matching, to select non-matching items during the grep action. Output Format: list: <server connection string>|<expiration date>|<size in bytes>|<key> dump, grep: <server connection string>|<expiration date>|<size in bytes>|<key> <value> get, set, incr, decr: <server connection string>|<key> <value> delete: <server connection string>|<key> flush: <server connection string> stats: <server connection string>|<statistic key>|<value>
许可证
memcacheinspector遵循MIT许可证。请参阅LICENSE文件以获取许可证的完整文本。
参考
主页: http://bitbucket.org/jayclassless/memcacheinspector/
Python: https://pythonlang.cn/
Memcached: http://memcached.org/
pip: http://pip.openplans.org/
SensePost博客: http://www.sensepost.com/blog/4873.html
项目详情
关闭
memcacheinspector-0.2.0.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | dcee899cb38f1430c34e25576d5970d097160b7fd72e3a3f0359a4b18da0b3a6 |
|
MD5 | a5858f78e6529aa6bdd97d9f9a202bf9 |
|
BLAKE2b-256 | 1739d2ebc50f6af713464eadde171b73685a80895214e4abc2c7297488bc37a6 |