Merge pull request #2910 from emanuelschuetze/redis-prefix

Use custom redis prefix for asgi and cache entries.
This commit is contained in:
Emanuel Schütze 2017-01-26 21:24:05 +01:00 committed by GitHub
commit c36835a40e

View File

@ -80,6 +80,7 @@ if use_redis:
# https://channels.readthedocs.io/en/latest/backends.html#redis # https://channels.readthedocs.io/en/latest/backends.html#redis
CHANNEL_LAYERS['default']['BACKEND'] = 'asgi_redis.RedisChannelLayer' CHANNEL_LAYERS['default']['BACKEND'] = 'asgi_redis.RedisChannelLayer'
CHANNEL_LAYERS['default']['CONFIG']['prefix'] = 'asgi:'
# Caching # Caching
@ -94,7 +95,8 @@ if use_redis:
"LOCATION": "redis://127.0.0.1:6379/0", "LOCATION": "redis://127.0.0.1:6379/0",
"OPTIONS": { "OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient", "CLIENT_CLASS": "django_redis.client.DefaultClient",
} },
"KEY_PREFIX": "openslides-cache",
} }
} }