Skip to main content

A drop in replacement for python-memcached that uses ultramemcache

Project description

Travis test status: [![Build Status](](

A drop in replacement for python-memcached to use [ultramemcache]( as an interface instead of python sockets. Requires ultramemcache. Usage is the same as [python-memcached]( .

Install via pip.
pip install python-ultramemcached

import ultramemcache
mc = ultramemcache.Client([''], debug=0)

mc.set("some_key", "Some value")
value = mc.get("some_key")

mc.set("another_key", 3)

mc.set("key", "1") # note that the key used for incr/decr must be a string.

#Usage with Django
To use this package with Django, implement your own subclass of Django's `BaseMemcachedCache` backend like this:

from django.core.cache.backends.memcached import BaseMemcachedCache

class UltraMemcachedCache(BaseMemcachedCache):
"An implementation of a cache binding using python-ultramemcached"
def __init__(self, server, params):
import ultramemcache
super(MemcachedCache, self).__init__(server, params,

Project details

Release history Release notifications

This version
History Node


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
python-ultramemcached-0.0.4.tar.gz (12.2 kB) Copy SHA256 hash SHA256 Source None Aug 4, 2014

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