Skip to content

Instantly share code, notes, and snippets.

@nicholasserra
Created December 10, 2012 20:33
Show Gist options
  • Save nicholasserra/4253173 to your computer and use it in GitHub Desktop.
Save nicholasserra/4253173 to your computer and use it in GitHub Desktop.
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,
library=ultramemcache,
value_not_found_exception=ValueError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment