diff --git a/django/core/cache/backends/memcached.py b/django/core/cache/backends/memcached.py
index 096cec0..3a5c15d 100644
a
|
b
|
try:
|
8 | 8 | except ImportError: |
9 | 9 | try: |
10 | 10 | import memcache |
| 11 | bits = memcache.__version__.split('.') |
| 12 | try: |
| 13 | if int(bits[0]) <=1 and int(bits[1]) < 40: |
| 14 | import warnings |
| 15 | warnings.warn("python-memcached backend before 1.40 is known to not be thread-safe.") |
| 16 | except: |
| 17 | pass |
11 | 18 | except: |
12 | 19 | raise InvalidCacheBackendError("Memcached cache backend requires either the 'memcache' or 'cmemcache' library") |
13 | 20 | |