summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPablo Montepagano <pablo@montepagano.com.ar>2022-06-28 16:56:51 -0300
committerGitHub <noreply@github.com>2022-06-28 21:56:51 +0200
commitbb2c5f69f47466fa52f3cf2727d10b3ebd79a4da (patch)
tree920aaed76b97374aa169405e3faf0b80f97215c4 /docs
parent154dd1c0edb25f3ab1e951eef8e0c2a1e6274e87 (diff)
Fixed #32749 -- Doc'd PyMemcacheCache defaults.
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 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 <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