[Django] #24212: Documentation for pylibmc cache backend needs additional info

13 views
Skip to first unread message

Django

unread,
Jan 23, 2015, 10:51:04 PM1/23/15
to django-...@googlegroups.com
#24212: Documentation for pylibmc cache backend needs additional info
-------------------------------+--------------------
Reporter: jb0t | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
Looking at the docs you'd assume that this would work for socket
connections to memcached via pylibmc..

{{{#!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.

Django

unread,
Jan 30, 2015, 8:57:53 AM1/30/15
to django-...@googlegroups.com
#24212: Documentation for pylibmc cache backend needs additional info
-------------------------------+------------------------------------
Reporter: jb0t | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by timgraham):

* 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>

Django

unread,
Oct 30, 2015, 3:33:21 AM10/30/15
to django-...@googlegroups.com
#24212: Documentation for pylibmc cache backend needs additional info
-------------------------------+------------------------------------
Reporter: jb0t | Owner: bxm156
Type: Bug | Status: assigned
Component: Documentation | Version: 1.7

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by bxm156):

* status: new => assigned
* owner: nobody => bxm156


--
Ticket URL: <https://code.djangoproject.com/ticket/24212#comment:2>

Django

unread,
Oct 30, 2015, 3:59:56 AM10/30/15
to django-...@googlegroups.com
#24212: Documentation for pylibmc cache backend needs additional info
-------------------------------+------------------------------------
Reporter: jb0t | Owner: bxm156
Type: Bug | Status: assigned
Component: Documentation | Version: 1.7

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by bxm156):

* 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>

Django

unread,
Oct 30, 2015, 1:45:43 PM10/30/15
to django-...@googlegroups.com
#24212: Documentation for pylibmc cache backend needs additional info
-------------------------------+------------------------------------
Reporter: jb0t | Owner: bxm156
Type: Bug | Status: closed
Component: Documentation | Version: 1.7
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by Tim Graham <timograham@…>):

* 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>

Django

unread,
Oct 30, 2015, 1:46:07 PM10/30/15
to django-...@googlegroups.com
#24212: Documentation for pylibmc cache backend needs additional info
-------------------------------+------------------------------------
Reporter: jb0t | Owner: bxm156
Type: Bug | Status: closed
Component: Documentation | Version: 1.7

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------

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>

Django

unread,
Oct 30, 2015, 1:46:07 PM10/30/15
to django-...@googlegroups.com
#24212: Documentation for pylibmc cache backend needs additional info
-------------------------------+------------------------------------
Reporter: jb0t | Owner: bxm156
Type: Bug | Status: closed
Component: Documentation | Version: 1.7

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------

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>

Django

unread,
Sep 2, 2020, 3:24:46 AM9/2/20
to django-...@googlegroups.com
#24212: Documentation for pylibmc cache backend needs additional info
-------------------------------+---------------------------------------
Reporter: Jay Hargis | Owner: Bryan Marty
Type: Bug | Status: closed
Component: Documentation | Version: 1.7

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+---------------------------------------

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>

Django

unread,
Sep 16, 2020, 4:02:30 AM9/16/20
to django-...@googlegroups.com
#24212: Documentation for pylibmc cache backend needs additional info
-------------------------------+---------------------------------------
Reporter: Jay Hargis | Owner: Bryan Marty
Type: Bug | Status: closed
Component: Documentation | Version: 1.7

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+---------------------------------------

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>

Reply all
Reply to author
Forward
0 new messages