Ticket #7399: memcache.patch

File memcache.patch, 711 bytes (added by Adam Blinkinsop, 16 years ago)

A patch that adds Google's memcache library to the memcached module.

  • django/core/cache/backends/memcached.py

     
    99    try:
    1010        import memcache
    1111    except:
    12         raise InvalidCacheBackendError("Memcached cache backend requires either the 'memcache' or 'cmemcache' library")
     12        try:
     13            import google.appengine.api.memcache as memcache
     14        except:
     15            raise InvalidCacheBackendError("Memcached cache backend requires either the 'memcache' or 'cmemcache' library")
    1316
    1417class CacheClass(BaseCache):
    1518    def __init__(self, server, params):
Back to Top