forked from killua/TakwayPlatform
9 lines
154 B
Python
9 lines
154 B
Python
|
import redis
|
||
|
from config import get_config
|
||
|
|
||
|
#获取配置信息
|
||
|
Config = get_config()
|
||
|
|
||
|
def get_redis():
|
||
|
return redis.Redis.from_url(Config.REDIS_URL)
|