Ticket #3648: cmemcache.patch
File cmemcache.patch, 661 bytes (added by , 18 years ago) |
---|
-
memcached.py
3 3 from django.core.cache.backends.base import BaseCache, InvalidCacheBackendError 4 4 5 5 try: 6 import memcache6 import cmemcache as memcache 7 7 except ImportError: 8 raise InvalidCacheBackendError, "Memcached cache backend requires the 'memcache' library" 8 try: 9 import memcache 10 except: 11 raise InvalidCacheBackendError, "Memcached cache backend requires the 'memcache' library" 9 12 10 13 class CacheClass(BaseCache): 11 14 def __init__(self, server, params):