更换cache使用方式
This commit is contained in:
6
utils/cache.py
Normal file
6
utils/cache.py
Normal file
@@ -0,0 +1,6 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user