This release is a pre-release and may not be stable for production use.
memcached命令行CLI
首先,需要确保已经安装了Memcached服务器,这里我们以debian为例:
sudo apt-get install memcached
默认情况下,我们可以通过如下的方式启动:
memcached-cli 127.0.0.1:11211>
默认监听本地的11211端口,我们可以通过如下的2种方式来修改其监听的地址和端口:
通过`-b`或`–host`修改监听的地址
通过`-p`或`–port`修改监听的端口
然后我们可以进行如下的操作:
127.0.0.1:11211>get name None 127.0.0.1:11211>set name zhangsan True 127.0.0.1:11211>get name zhangsan
我们直接调用Memcached对应的命令传入对应的参数即可。 如果对某个命令不是很熟悉,可以通过输入1个`help`来查看当前支持的命令:
127.0.0.1:11211>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 对应的命令`查看其详细的参数说明:
127.0.0.1:11211>help get
The memcached "get" command, but only for one key, as a convenience.
Args:
key: str, see class docs for details.
Returns:
The value for the key, or None if the key wasn't found.
Metadata
Release files for Memcached-cli 0.1.dev0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Memcached-cli-0.1.dev0.tar.gz | 3.2 kB | Without provenance | Details for Memcached-cli-0.1.dev0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Memcached_cli-0.1.dev0-py2.7.egg | Legacy Egg format | - | - | Details for Memcached_cli-0.1.dev0-py2.7.egg |
Total release size: 8.5 kB
Release files / Memcached-cli-0.1.dev0.tar.gz
| Download URL | Memcached-cli-0.1.dev0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1875607843438234231b663875d6ee47ce292a563d4a257c33b2fec23fa7eac3
|
|
BLAKE2b-256 checksum How to use checksums |
306949ba0f76f4d8a3737bf70801e140a21605d676cae5cd46fa41802ab40f12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Memcached_cli-0.1.dev0-py2.7.egg
| Download URL | Memcached_cli-0.1.dev0-py2.7.egg |
|---|---|
| Size | 5.3 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
f66ca8be361f3985e6024dc36a308fcab2392d91f50c5d79f3a27d07da2ee7bb
|
|
BLAKE2b-256 checksum How to use checksums |
f5148ee7ef381893fd9f2ce1a241fc8c72ccd949671d8b32a27d0bdf5a56f09d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Memcached-cli 0.1.dev0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.