From 72358f0110f3967d95f077986e70e5c8080e9962 Mon Sep 17 00:00:00 2001 From: Pablo Montepagano Date: Tue, 28 Jun 2022 16:56:51 -0300 Subject: [PATCH] [4.1.x] Fixed #32749 -- Doc'd PyMemcacheCache defaults. Backport of bb2c5f69f47466fa52f3cf2727d10b3ebd79a4da from main --- docs/topics/cache.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt index e769fe0da9..2bfe37c941 100644 --- a/docs/topics/cache.txt +++ b/docs/topics/cache.txt @@ -149,6 +149,15 @@ on the IP addresses 172.19.26.240 (port 11211), 172.19.26.242 (port 11212), and } } +By default, the ``PyMemcacheCache`` backend sets the following options (you can +override them in your :setting:`OPTIONS `):: + + 'OPTIONS': { + 'allow_unicode_keys': True, + 'default_noreply': False, + 'serde': pymemcache.serde.pickle_serde, + } + A final point about Memcached is that memory-based caching has a disadvantage: because the cached data is stored in memory, the data will be lost if your server crashes. Clearly, memory isn't intended for permanent data