Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added example for memcache config #40

Merged
merged 1 commit into from

2 participants

@solarce

No description provided.

@ednapiranha ednapiranha merged commit ac71c6c into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 29, 2012
  1. @solarce

    memcache example

    solarce authored
This page is out of date. Refresh to see the latest.
Showing with 11 additions and 0 deletions.
  1. +11 −0 settings_local.py-dist
View
11 settings_local.py-dist
@@ -343,4 +343,15 @@ SOUTH_TESTS_MIGRATE = False
CACHE_BACKEND = 'caching.backends.locmem://'
CACHE_COUNT_TIMEOUT = 60
+
+CACHES = {
+ 'default': {
+ 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
+ 'LOCATION': [
+ 'memcache1:11211',
+ 'memcache2:11211',
+ ],
+ 'KEY_PREFIX': 'mozillalabs_environment'
+ }
+}
BLOG_FEED_URL = 'http://blog.mozilla.com/labs/rss'
Something went wrong with that request. Please try again.