Opened 6 years ago

Closed 6 years ago

Last modified 8 months ago

#24212 closed Bug (fixed)

Documentation for pylibmc cache backend needs additional info

Reported by: Jay Hargis Owned by: Bryan Marty
Component: Documentation Version: 1.7
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Looking at the docs you'd assume that this would work for socket connections to memcached via pylibmc..

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
        'LOCATION': 'unix:/tmp/memcached.sock',
    }
}

but it doesn't unless you drop the unix prefix

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.

Change History (8)

comment:1 Changed 6 years ago by Tim Graham

Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

If you could draft a patch, I'll be happy to review it.

comment:2 Changed 6 years ago by Bryan Marty

Owner: changed from nobody to Bryan Marty
Status: newassigned

comment:4 Changed 6 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In ad67fcdf:

Fixed #24212 -- Added example pylibmc CACHES configuration.

comment:5 Changed 6 years ago by Tim Graham <timograham@…>

In dd0e7f53:

[1.8.x] Fixed #24212 -- Added example pylibmc CACHES configuration.

Backport of ad67fcdf51ebbbd7c02c1a2b1f269edc8f92afdc from master

comment:6 Changed 6 years ago by Tim Graham <timograham@…>

In a09a889:

[1.9.x] Fixed #24212 -- Added example pylibmc CACHES configuration.

Backport of ad67fcdf51ebbbd7c02c1a2b1f269edc8f92afdc from master

comment:7 Changed 9 months ago by Mariusz Felisiak <felisiak.mariusz@…>

In a629139:

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.

comment:8 Changed 8 months ago by Mariusz Felisiak <felisiak.mariusz@…>

In cda0a3d7:

Refs #29887, Refs #24212 -- Added more client servers tests for PyLibMCCache.

Note: See TracTickets for help on using tickets.
Back to Top