OnlineJudge/utils/cache.py
2017-08-15 20:32:14 +08:00

7 lines
264 B
Python

from django.conf import settings
from django_redis import get_redis_connection
judge_queue_cache = get_redis_connection(settings.CACHE_JUDGE_QUEUE)
throttling_cache = get_redis_connection(settings.CACHE_THROTTLING)
default_cache = get_redis_connection("default")