From 59351247bd635c55bb72a156d71f0d3a27563a67 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Mon, 24 Dec 2012 23:15:45 +0100 Subject: [PATCH] Removed django.core.cache.backends.memcached.CacheClass. --- django/core/cache/backends/memcached.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/django/core/cache/backends/memcached.py b/django/core/cache/backends/memcached.py index 2c3f198847..f8dcf983af 100644 --- a/django/core/cache/backends/memcached.py +++ b/django/core/cache/backends/memcached.py @@ -138,23 +138,6 @@ class BaseMemcachedCache(BaseCache): def clear(self): self._cache.flush_all() -class CacheClass(BaseMemcachedCache): - def __init__(self, server, params): - import warnings - warnings.warn( - "memcached.CacheClass has been split into memcached.MemcachedCache and memcached.PyLibMCCache. Please update your cache backend setting.", - DeprecationWarning - ) - try: - import memcache - except ImportError: - raise InvalidCacheBackendError( - "Memcached cache backend requires either the 'memcache' or 'cmemcache' library" - ) - super(CacheClass, self).__init__(server, params, - library=memcache, - value_not_found_exception=ValueError) - class MemcachedCache(BaseMemcachedCache): "An implementation of a cache binding using python-memcached" def __init__(self, server, params):