From af783a95996e1b722e8bc8f85e9245087a1f35c2 Mon Sep 17 00:00:00 2001 From: jpmc Date: Wed, 31 May 2017 12:51:39 -0500 Subject: [PATCH 1/2] Suport for Django 1.11 add dummy MAX_ENTRIES and CULL_FREQUENCY --- memcache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memcache.py b/memcache.py index b38020e..11b5e9f 100644 --- a/memcache.py +++ b/memcache.py @@ -145,7 +145,7 @@ class MemcachedStringEncodingError(Exception): def __init__(self, servers, debug=0, pickleProtocol=0, pickler=pickle.Pickler, unpickler=pickle.Unpickler, - pload=None, pid=None, + pload=None, pid=None, MAX_ENTRIES=300, CULL_FREQUENCY=3, server_max_key_length=SERVER_MAX_KEY_LENGTH, server_max_value_length=SERVER_MAX_VALUE_LENGTH, dead_retry=_DEAD_RETRY, socket_timeout=_SOCKET_TIMEOUT, From 5c7f310e029e3911c599a1b4fe715bc4acbff100 Mon Sep 17 00:00:00 2001 From: jpmc Date: Wed, 31 May 2017 12:57:45 -0500 Subject: [PATCH 2/2] Update readme --- README | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README b/README index 2b4eb18..7012462 100644 --- a/README +++ b/README @@ -1,3 +1,14 @@ +Suport for Django 1.11 add dummy MAX_ENTRIES and CULL_FREQUENCY + +For pip install + +``` +pip install -e git+https://github.com/jpmcpe/python3-memcached.git#egg=python3_memcached +``` + +Below is the original README content. + +---- Important Deprecation Note: This was a py3 compatibility port of https://github.com/linsomniac/python-memcached which since then has added py23. So you should use that.