{{{#!python
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
'LOCATION': 'unix:/tmp/memcached.sock',
}
}
}}}
but it doesn't unless you drop the unix prefix
{{{#!python
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
'LOCATION': '/tmp/memcached.sock',
}
}
}}}
Searching the web there is very little mention of this. Would be helpful
to see the distinction in the docs.
--
Ticket URL: <https://code.djangoproject.com/ticket/24212>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* type: Uncategorized => Bug
* needs_tests: => 0
* stage: Unreviewed => Accepted
Comment:
If you could draft a patch, I'll be happy to review it.
--
Ticket URL: <https://code.djangoproject.com/ticket/24212#comment:1>
* status: new => assigned
* owner: nobody => bxm156
--
Ticket URL: <https://code.djangoproject.com/ticket/24212#comment:2>
* has_patch: 0 => 1
Comment:
Diff:
https://github.com/bxm156/django/commit/f1c5238266981a59d71b49e1e0ce6f7f9acf8faf
Created a pull request:
https://github.com/django/django/pull/5515
--
Ticket URL: <https://code.djangoproject.com/ticket/24212#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"ad67fcdf51ebbbd7c02c1a2b1f269edc8f92afdc" ad67fcdf]:
{{{
#!CommitTicketReference repository=""
revision="ad67fcdf51ebbbd7c02c1a2b1f269edc8f92afdc"
Fixed #24212 -- Added example pylibmc CACHES configuration.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24212#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"dd0e7f5301098372396c33698cd796fb6ac9d633" dd0e7f53]:
{{{
#!CommitTicketReference repository=""
revision="dd0e7f5301098372396c33698cd796fb6ac9d633"
[1.8.x] Fixed #24212 -- Added example pylibmc CACHES configuration.
Backport of ad67fcdf51ebbbd7c02c1a2b1f269edc8f92afdc from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24212#comment:5>
Comment (by Tim Graham <timograham@…>):
In [changeset:"a09a889a57d783cd23ab2e31feccad3c7f0ebc4c" a09a889]:
{{{
#!CommitTicketReference repository=""
revision="a09a889a57d783cd23ab2e31feccad3c7f0ebc4c"
[1.9.x] Fixed #24212 -- Added example pylibmc CACHES configuration.
Backport of ad67fcdf51ebbbd7c02c1a2b1f269edc8f92afdc from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24212#comment:6>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"a6291394256aa758d74eec9ce0cfae8aea6475f2" a629139]:
{{{
#!CommitTicketReference repository=""
revision="a6291394256aa758d74eec9ce0cfae8aea6475f2"
Refs #29887, Refs #24212 -- Added servers configuration hook for memcached
backends.
The servers property can be overridden to allow memcached backends to
alter the server configuration prior to it being passed to instantiate
the client. This allows avoidance of documentation for per-backend
differences, e.g. stripping the 'unix:' prefix for pylibmc.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24212#comment:7>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"cda0a3d7773b44c28669dfa1a41cb6203c5c298e" cda0a3d7]:
{{{
#!CommitTicketReference repository=""
revision="cda0a3d7773b44c28669dfa1a41cb6203c5c298e"
Refs #29887, Refs #24212 -- Added more client servers tests for
PyLibMCCache.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24212#comment:8>