Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed django.core.cache.backends.memcached.CacheClass.

  • Loading branch information...
commit 59351247bd635c55bb72a156d71f0d3a27563a67 1 parent ebd2598
@aaugustin aaugustin authored
Showing with 0 additions and 17 deletions.
  1. +0 −17 django/core/cache/backends/memcached.py
View
17 django/core/cache/backends/memcached.py
@@ -138,23 +138,6 @@ def delete_many(self, keys, version=None):
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):
Please sign in to comment.
Something went wrong with that request. Please try again.