Commit 1fb0d71a authored by Chris Lamb's avatar Chris Lamb 💬

Configure django-redis.

parent 16088151
...@@ -125,9 +125,11 @@ MESSAGE_STORAGE = 'django.contrib.messages.storage.cookie.CookieStorage' ...@@ -125,9 +125,11 @@ MESSAGE_STORAGE = 'django.contrib.messages.storage.cookie.CookieStorage'
CACHES = { CACHES = {
'default': { 'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'BACKEND': 'django_redis.cache.RedisCache',
'LOCATION': '127.0.0.1:11211', 'LOCATION': 'redis://127.0.0.1:6379/1',
'KEY_PREFIX': 'bidb', 'OPTIONS': {
'CLIENT_CLASS': 'django_redis.client.DefaultClient',
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment