Skip to content

Instantly share code, notes, and snippets.

@jacobb
Created December 21, 2010 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacobb/749396 to your computer and use it in GitHub Desktop.
Save jacobb/749396 to your computer and use it in GitHub Desktop.
settings used to test pylibmc support in django
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3'
},
'other': {
'ENGINE': 'django.db.backends.sqlite3',
'TEST_NAME': 'other_db'
}
}
CACHE_BACKEND='memcached://127.0.0.1:11211'
CACHES = {
'default' : {
'ENGINE': 'memcached',
'NAME': '127.0.0.1:11211',
'BINDING': 'pylibmc',
'BEHAVIORS': {'distribution': 'consistent'}
}
}
@jezdez
Copy link

jezdez commented Dec 21, 2010

Why is there a CACHE_BACKEND and a CACHES dictionary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment