diff options
| author | Bryan Marty <bryanmarty@gmail.com> | 2015-10-30 00:56:55 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-10-30 13:45:53 -0400 |
| commit | dd0e7f5301098372396c33698cd796fb6ac9d633 (patch) | |
| tree | d4410ceabb7e6bd92bf7563ca29b609b8991e4c5 | |
| parent | 06abe84e2070e412cbbb23a4c2fa6a017f64de9b (diff) | |
[1.8.x] Fixed #24212 -- Added example pylibmc CACHES configuration.
Backport of ad67fcdf51ebbbd7c02c1a2b1f269edc8f92afdc from master
| -rw-r--r-- | docs/topics/cache.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt index 783a00f905..af648553b6 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* |
