Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.78 KB

README.rst

File metadata and controls

59 lines (40 loc) · 1.78 KB

sprockets.clients.memcached

Memcached client wrapper that is configured via environment variables.

Version Status Coverage License

Installation

sprockets.clients.memcached is available on the Python Package Index and can be installed via pip or easy_install:

pip install sprockets.clients.memcached

Documentation

https://sprocketsclientsmemcached.readthedocs.org

Requirements

Example

The following example sets the environment variables for connecting to memcached on 192.168.1.2 and 192.168.1.3 and subsequently issuing a few memcached commands:

import os

from sprockets.clients import memcached

os.environ['MEMCACHED_SERVERS'] = '192.168.1.2:11211,192.168.1.3:11211'


client = memcached.Client()
client.set('foo', 'bar')
print(client.get('foo'))

Version History

Available at https://sprocketsclientsmemcached.readthedocs.io/en/latest/history.html