Skip to main content

Memcached client wrapper that is configured via environment variables

Project description

Memcached client wrapper that is configured via environment variables.

Version Downloads 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.org/en/latest/history.html

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sprockets.clients.memcached-1.0.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page