Created
December 10, 2012 20:33
-
-
Save nicholasserra/4253173 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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