Removed BaseMemcachedCacheMethods._get_memcache_timeout backwards compatibility shim.
Per deprecation timeline; refs #21147.
This commit is contained in:
parent
20e4e8fc79
commit
40d6b376d4
|
@ -5,18 +5,11 @@ import pickle
|
||||||
|
|
||||||
from django.core.cache.backends.base import BaseCache, DEFAULT_TIMEOUT
|
from django.core.cache.backends.base import BaseCache, DEFAULT_TIMEOUT
|
||||||
from django.utils import six
|
from django.utils import six
|
||||||
from django.utils.deprecation import RenameMethodsBase, RemovedInDjango19Warning
|
|
||||||
from django.utils.encoding import force_str
|
from django.utils.encoding import force_str
|
||||||
from django.utils.functional import cached_property
|
from django.utils.functional import cached_property
|
||||||
|
|
||||||
|
|
||||||
class BaseMemcachedCacheMethods(RenameMethodsBase):
|
class BaseMemcachedCache(BaseCache):
|
||||||
renamed_methods = (
|
|
||||||
('_get_memcache_timeout', 'get_backend_timeout', RemovedInDjango19Warning),
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class BaseMemcachedCache(six.with_metaclass(BaseMemcachedCacheMethods, BaseCache)):
|
|
||||||
def __init__(self, server, params, library, value_not_found_exception):
|
def __init__(self, server, params, library, value_not_found_exception):
|
||||||
super(BaseMemcachedCache, self).__init__(params)
|
super(BaseMemcachedCache, self).__init__(params)
|
||||||
if isinstance(server, six.string_types):
|
if isinstance(server, six.string_types):
|
||||||
|
|
Loading…
Reference in New Issue