Skip to main content

pythone client for elasticache auto discovery

Project description

# do auto discovery for aws elasticache

## introduce Implement aws elasticache auto discovery, for detail about auto discovery, please reference to:

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:

## install First, install python_memcached and hash_ring, elasticache_pyclient depend on them:

pip install python_memcached hash_ring

Then, install elasticache_pyclient:

pip install elasticache_pyclient

## usage

>>> from elasticache_pyclient import MemcacheClient
>>> mc = MemcacheClient('')
>>> mc.set('foo', 'bar')
>>> mc.get('foo')

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)

## version support The elasticache_pyclient package is tested on python 2.7, 3.5 and 3.6.

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 elasticache_pyclient, version 2.1.1
Filename, size File type Python version Upload date Hashes
Filename, size elasticache_pyclient-2.1.1-py2.py3-none-any.whl (4.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page