Memcached client wrapper that is configured via environment variables
Project description
Memcached client wrapper that is configured via environment variables.
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
Requirements
python-memcached (Python 2)
python3-memcached (Python 3)
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.org/en/latest/history.html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for sprockets.clients.memcached-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93ff4777c518b7176d8f3a3b3aeb85e6132ec3567f933cf12bf357b86271357c |
|
MD5 | 796b8b81388f68f7e17b1a904498abda |
|
BLAKE2b-256 | 7878c19c55251c85e675cf349feeb37a1e5538ff3ff5a213bdd888c6c20e096e |