  from django.template.context_processors import csrf
  from django.template.response import TemplateResponse
  from django.test import (
      RequestFactory, SimpleTestCase, TestCase, TransactionTestCase,
      override_settings,
  )
  from django.test.signals import setting_changed
  from django.utils import timezone, translation
  from django.utils.cache import (
      get_cache_key, learn_cache_key, patch_cache_control, patch_vary_headers,
 
</s> remove         # pylibmc doesn't seem to have SERVER_MAX_VALUE_LENGTH as far as I can
        # tell from a quick check of its source code. This is falling back to
        # the default value exposed by python-memcached on my system.
        max_value_length = getattr(cache._lib, 'SERVER_MAX_VALUE_LENGTH', 1048576)
 </s> add         max_value_length = 2 ** 20
    ignore_warnings, override_settings,
  from django.template.context_processors import csrf
  from django.template.response import TemplateResponse
  from django.test import (
      RequestFactory, SimpleTestCase, TestCase, TransactionTestCase,
    ignore_warnings, override_settings,
  )
  from django.test.signals import setting_changed
  from django.utils import timezone, translation
  from django.utils.cache import (
      get_cache_key, learn_cache_key, patch_cache_control, patch_vary_headers,
keep keep keep keep replace keep keep keep keep keep
 Fixed #32193 -- Deprecated MemcachedCache. 
tests/cache/tests.py