Update performance.rst

pull/5272/head
scil 2019-04-26 10:01:30 +08:00 zatwierdzone przez Matt Westcott
rodzic 02f3ae5696
commit 1e55b98af0
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

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

Wyświetl plik

@ -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',
}