Ticket #3648: cmemcache.patch

File cmemcache.patch, 661 bytes (added by floguy@…, 9 years ago)

Patch to allow cmemcache to be used instead of memcache.

  • memcached.py

     
    33from django.core.cache.backends.base import BaseCache, InvalidCacheBackendError
    44
    55try:
    6     import memcache
     6    import cmemcache as memcache
    77except 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"
    912
    1013class CacheClass(BaseCache):
    1114    def __init__(self, server, params):
Back to Top