Opened 9 years ago

Closed 8 years ago

Last modified 4 years 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 by Tim Graham, 9 years ago

Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

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

comment:2 by Bryan Marty, 8 years ago

Owner: changed from nobody to Bryan Marty
Status: newassigned

comment:4 by Tim Graham <timograham@…>, 8 years ago

Resolution: fixed
Status: assignedclosed

In ad67fcdf:

Fixed #24212 -- Added example pylibmc CACHES configuration.

comment:5 by Tim Graham <timograham@…>, 8 years ago

In dd0e7f53:

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

Backport of ad67fcdf51ebbbd7c02c1a2b1f269edc8f92afdc from master

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

In a09a889:

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

Backport of ad67fcdf51ebbbd7c02c1a2b1f269edc8f92afdc from master

comment:7 by Mariusz Felisiak <felisiak.mariusz@…>, 4 years ago

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 by Mariusz Felisiak <felisiak.mariusz@…>, 4 years ago

In cda0a3d7:

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

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