Merge pull request #2910 from emanuelschuetze/redis-prefix
Use custom redis prefix for asgi and cache entries.
This commit is contained in:
commit
c36835a40e
@ -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",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user