#10168: Can't configure memcached backend to use unix socket
--------------------------+-------------------------------------------------
Reporter: munhitsu | Owner: nobody
Status: new | Milestone:
Component: Cache system | Version: 1.0
Keywords: enhancement | Stage: Unreviewed
Has_patch: 0 |
--------------------------+-------------------------------------------------
So far unix socket is the only way to apply access control on memcached
daemon:
{{{
memcached -m 16 -s memcached.sock
}}}
At this point django expects memcached to be on "server:port".
Can you extend it to also support files?
settings.py:
{{{
CACHE_BACKEND = 'memcached://../memcached.sock/?timeout=' +str(TIMEOUT)+
'&max_entries=' +str(MAXENTRIES)
}}}
Exception:
{{{
File
"/vhost/cr3studio/cr3studio/django_site/django/django/core/cache/backends/memcached.py",
line 17, in __init__
self._cache = memcache.Client(server.split(';'))
TypeError: expected "server:port" but "../memcached.sock" found
}}}
PS: you can assign it to me :)
--
Ticket URL: <http://code.djangoproject.com/ticket/10168>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---