Skip to content

Doesn't get values from os environ #45

@Brakkar

Description

@Brakkar

Hello,
i'm trying to use this with django 1.8

here is my settings.py

# Cache
os.environ[ 'MEMCACHE_SERVERS' ] = '***:***'
os.environ[ 'MEMCACHE_USERNAME' ] = '***'
os.environ[ 'MEMCACHE_PASSWORD' ] = '***'



CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
        'LOCATION': '****',
        'BINARY' : True,
    },

}

It seems to ignore completely what is in os environment. So if I don't put LOCATION in the caches, it won't pick it up from the os environ.
So when LOCATION in CACHES it connects, but it won't authenticate. I guess it doesn't pick username and password from environment.
is there an alternative way to force username, password ?

I use this with rediscloud memcache and their authentication is using SASL Authentication... if this makes any difference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions