#27152: Comma-delimited servers list not supported in memcached caches 
`LOCATION`
-------------------------------------+--------------------
     Reporter:  edmorley             |      Owner:  nobody
         Type:  Bug                  |     Status:  new
    Component:  Core (Cache system)  |    Version:  1.10
     Severity:  Normal               |   Keywords:
 Triage Stage:  Unreviewed           |  Has patch:  0
Easy pickings:  0                    |      UI/UX:  0
-------------------------------------+--------------------
 Currently Django's memcached backends only support a semicolon delimited
 servers list in the cache config, such as:

 {{{
 CACHES = {
     'default': {
         'LOCATION': 'server1.foo.com;server2.foo.com',
     },
 }
 }}}

 This is because the backend
 
[https://github.com/django/django/blob/1.10/django/core/cache/backends/memcached.py#L16
 just does]:
 {{{
     self._servers = server.split(';')
 }}}

 However cloud memcached offerings such as Memcachier and Memcached Cloud
 typically use a comma-delimited list in the automatically set environment
 variable, eg:

 {{{
 MEMCACHIER_SERVERS='foo.us-east-5.heroku.prod.memcachier.com:11211,bar.us-
 east-5.heroku.prod.memcachier.com:11211'
 }}}

 Given that the caches `LOCATION` parameter contains only domain name and
 port (and not say passwords), it should never contain a comma - so we
 should be fine to also split on them too.

--
Ticket URL: <https://code.djangoproject.com/ticket/27152>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.036a4b81ad6016dbb03ef1a6779b7131%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to