from .base import *

assert not DEBUG, "base settings must set DEBUG to False"
DEBUG = True
ALLOWED_HOSTS = ['*']

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
        'LOCATION': '127.0.0.1:11211',
        'USERNAME': None,
        'PASSWORD': None,
        'BINARY': True,  # needed for authentication
        'TIMEOUT': None,  # disables expiration
        'OPTIONS': {
            'tcp_nodelay': True,  # Enable faster IO
            'tcp_keepalive': True,  # Keep connection alive

            # Timeout settings
            'connect_timeout': 2000,  # ms
            'send_timeout': 750 * 1000,  # us
            'receive_timeout': 750 * 1000,  # us
            '_poll_timeout': 2000,  # ms

            # Better failover
            'ketama': True,
            'remove_failed': 1,
            'retry_timeout': 2,
            'dead_timeout': 30,
        },
    }
}

a40931a864124a21a23d7fe4e9f8f4da56b3a1a7
<mask token>

<mask token>
assert not DEBUG, 'base settings must set DEBUG to False'
<mask token>

<mask token>
assert not DEBUG, 'base settings must set DEBUG to False'
DEBUG = True
ALLOWED_HOSTS = ['*']
CACHES = {'default': {'BACKEND':
    'django.core.cache.backends.memcached.PyLibMCCache', 'LOCATION':
    '127.0.0.1:11211', 'USERNAME': None, 'PASSWORD': None, 'BINARY': True,
    'TIMEOUT': None, 'OPTIONS': {'tcp_nodelay': True, 'tcp_keepalive': True,
    'connect_timeout': 2000, 'send_timeout': 750 * 1000, 'receive_timeout':
    750 * 1000, '_poll_timeout': 2000, 'ketama': True, 'remove_failed': 1,
    'retry_timeout': 2, 'dead_timeout': 30}}}

from .base import *
assert not DEBUG, 'base settings must set DEBUG to False'
DEBUG = True
ALLOWED_HOSTS = ['*']
CACHES = {'default': {'BACKEND':
    'django.core.cache.backends.memcached.PyLibMCCache', 'LOCATION':
    '127.0.0.1:11211', 'USERNAME': None, 'PASSWORD': None, 'BINARY': True,
    'TIMEOUT': None, 'OPTIONS': {'tcp_nodelay': True, 'tcp_keepalive': True,
    'connect_timeout': 2000, 'send_timeout': 750 * 1000, 'receive_timeout':
    750 * 1000, '_poll_timeout': 2000, 'ketama': True, 'remove_failed': 1,
    'retry_timeout': 2, 'dead_timeout': 30}}}

from .base import *

assert not DEBUG, "base settings must set DEBUG to False"
DEBUG = True
ALLOWED_HOSTS = ['*']

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
        'LOCATION': '127.0.0.1:11211',
        'USERNAME': None,
        'PASSWORD': None,
        'BINARY': True,  # needed for authentication
        'TIMEOUT': None,  # disables expiration
        'OPTIONS': {
            'tcp_nodelay': True,  # Enable faster IO
            'tcp_keepalive': True,  # Keep connection alive

            # Timeout settings
            'connect_timeout': 2000,  # ms
            'send_timeout': 750 * 1000,  # us
            'receive_timeout': 750 * 1000,  # us
            '_poll_timeout': 2000,  # ms

            # Better failover
            'ketama': True,
            'remove_failed': 1,
            'retry_timeout': 2,
            'dead_timeout': 30,
        },
    }
}
