From bb2c5f69f47466fa52f3cf2727d10b3ebd79a4da Mon Sep 17 00:00:00 2001 From: Pablo Montepagano Date: Tue, 28 Jun 2022 16:56:51 -0300 Subject: [PATCH] Fixed #32749 -- Doc'd PyMemcacheCache defaults. --- docs/topics/cache.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt index 2036b3ee94..e8bd5da11a 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