Kaydet (Commit) ad67fcdf authored tarafından Bryan Marty's avatar Bryan Marty Kaydeden (comit) Tim Graham

Fixed #24212 -- Added example pylibmc CACHES configuration.

üst a1721664
...@@ -114,6 +114,15 @@ In this example, Memcached is available through a local Unix socket file ...@@ -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 One excellent feature of Memcached is its ability to share a cache over
multiple servers. This means you can run Memcached daemons on multiple multiple servers. This means you can run Memcached daemons on multiple
machines, and the program will treat the group of machines as a *single* machines, and the program will treat the group of machines as a *single*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment