Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Enhance Python memcached client with a dictionary class

Project description

# mcdict

Python class to access a memcache as if it was a dict. This implementation includes the keys() method. All the memcache limitations are preserved, e.g. keys must be strings no longer than 250 bytes.

## Usage

Basic usage:

import mcdict mc = mcdict.MCDict() mc[“mummy”] = “Olena” print mc[“mummy”]

By default, it connects to localhost on port 11211. If you need to specify a host and/or port:

mc = mcdict.MCDict(mcaddress=‘’)

Access the underlying memcache Client object (note second mc)

{'accepting_conns': '1',
 'auth_cmds': '0',
 'auth_errors': '0',
 ... }

Retrieve a list of keys currently in use: (note that this will cause big memcaches to block until it completes and this won’t provide a complete list of keys on very big memcaches)

>>> mc.keys()
 ... ]

## Installation

pip install ‘git+git://’

## License

mcdict is released under the [MIT license](

Project details

Release history Release notifications

This version
History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
mcdict-1.03.tar.gz (4.2 kB) Copy SHA256 hash SHA256 Source None Jul 31, 2011

Supported by

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