# do auto discovery for aws elasticache
## introduce Implement aws elasticache auto discovery, for detail about auto discovery, please reference to:
http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/AutoDiscovery.html
It uses python-memcached implements memcache command, and use hash_ring implements consistent hash, below links have more detail about python-memcached and hash_ring:
https://pypi.python.org/pypi/python-memcached
https://pypi.python.org/pypi/hash_ring/
## install
pip install elasticache_pyclient
## usage
>>> from elasticache_pyclient import MemcacheClient
>>> mc = MemcacheClient('test.lwgyhw.cfg.usw2.cache.amazonaws.com:11211')
>>> mc.set('foo', 'bar')
True
>>> mc.get('foo')
'bar'
Besides set and get, it supports all the python-memcached methods, to examine all the python-memcached methods, you can run these commands in python interpreter:
import memcache help(memcache.Client)
## stop atuo discovery timer Every MemcacheClient will start a timer for auto discovery, if do not use MemcacheClient object anymore, please call this funciton to stop the timer, or the timer will run forever
>>> mc.stop_timer()
## version support The elasticache_pyclient package is tested on python 2.7, 3.5 and 3.6.
Metadata
Release files for elasticache_pyclient 2.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| elasticache_pyclient-2.1.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for elasticache_pyclient-2.1.2-py2.py3-none-any.whl |
Release files / elasticache_pyclient-2.1.2-py2.py3-none-any.whl
| Download URL | elasticache_pyclient-2.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5c27210d7e79970cf280b57cce615784f702d95cc36e177489026f6b32c29a8f
|
|
BLAKE2b-256 checksum How to use checksums |
c99085bea6980f271dfdf8ae68afc1ce8632f76125e288ae55b0266f6d0862f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
|
Security for elasticache_pyclient 2.1.2
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.