Update performance.rst

This commit is contained in:
scil 2019-04-26 10:01:30 +08:00 committed by Matt Westcott
parent 02f3ae5696
commit 1e55b98af0
2 changed files with 4 additions and 1 deletions

View file

@ -366,6 +366,7 @@ Contributors
* Jason Dilworth
* Deniz Dogan
* Po-Chuan Hsieh
* scil
Translators
===========

View file

@ -20,7 +20,9 @@ We recommend `Redis <http://redis.io/>`_ as a fast, persistent cache. Install Re
CACHES = {
'default': {
'BACKEND': 'django_redis.cache.RedisCache',
'LOCATION': '127.0.0.1:6379',
'LOCATION': 'redis://127.0.0.1:6379/dbname',
# for django-redis < 3.8.0, use:
# 'LOCATION': '127.0.0.1:6379',
'OPTIONS': {
'CLIENT_CLASS': 'django_redis.client.DefaultClient',
}