From ad67fcdf51ebbbd7c02c1a2b1f269edc8f92afdc Mon Sep 17 00:00:00 2001 From: Bryan Marty Date: Fri, 30 Oct 2015 00:56:55 -0700 Subject: [PATCH] Fixed #24212 -- Added example pylibmc CACHES configuration. --- docs/topics/cache.txt | 9 +++++++++ 1 file changed, 9 insertions(+) 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*