mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-01-08 13:31:49 +00:00
9 lines
255 B
Python
9 lines
255 B
Python
# coding=utf-8
|
|
import redis
|
|
from django.conf import settings
|
|
|
|
|
|
def get_cache_redis():
|
|
return redis.Redis(host=settings.REDIS_CACHE["host"],
|
|
port=settings.REDIS_CACHE["port"],
|
|
db=settings.REDIS_CACHE["db"]) |