JudgeDispatcher beta.

This commit is contained in:
zemal
2017-05-08 20:37:54 +08:00
parent 25dd57bb49
commit 5de3adf0ef
5 changed files with 154 additions and 11 deletions

View File

@@ -10,6 +10,23 @@ DATABASES = {
}
}
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://127.0.0.1:6379/1",
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
},
"JudgeQueue": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://127.0.0.1:6379/2",
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
}
}
REDIS_CACHE = {
"host": "127.0.0.1",
"port": 6379,