mirror of https://github.com/django/django.git
[1.8.x] Fixed #24212 -- Added example pylibmc CACHES configuration.
Backport of ad67fcdf51
from master
This commit is contained in:
parent
06abe84e20
commit
dd0e7f5301
|
@ -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*
|
||||
|
|
Loading…
Reference in New Issue