summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Marty <bryanmarty@gmail.com>2015-10-30 00:56:55 -0700
committerTim Graham <timograham@gmail.com>2015-10-30 13:45:47 -0400
commita09a889a57d783cd23ab2e31feccad3c7f0ebc4c (patch)
tree32562b812854d86e8c0f8256c16be1b40aa9c21a
parent7b03595489446a8e05b4bcbf0d86b2429d545048 (diff)
[1.9.x] Fixed #24212 -- Added example pylibmc CACHES configuration.
Backport of ad67fcdf51ebbbd7c02c1a2b1f269edc8f92afdc from master
-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 4e49cd7ae3..3c9e1eafda 100644
--- a/docs/topics/cache.txt
+++ b/docs/topics/cache.txt
@@ -114,6 +114,15 @@ In this example, Memcached is available through a local Unix socket file
}
}
+When using the ``pylibmc`` binding, do not include the ``unix:/`` prefix::
+
+ CACHES = {
+ 'default': {
+ 'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
+ 'LOCATION': '/tmp/memcached.sock',
+ }
+ }
+
One excellent feature of Memcached is its ability to share a cache over
multiple servers. This means you can run Memcached daemons on multiple
machines, and the program will treat the group of machines as a *single*