summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPablo Montepagano <pablo@montepagano.com.ar>2022-06-28 16:56:51 -0300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-06-28 21:58:08 +0200
commit72358f0110f3967d95f077986e70e5c8080e9962 (patch)
tree3b33fbcc13b9602a5a73c9955dfd061db912ff14 /docs
parente40b77365fb030b66c039a263ae9fd262a59e373 (diff)
[4.1.x] Fixed #32749 -- Doc'd PyMemcacheCache defaults.
Backport of bb2c5f69f47466fa52f3cf2727d10b3ebd79a4da from main
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/cache.txt9
1 files changed, 9 insertions, 0 deletions
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 <CACHES-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