root
first commit
7a919c0
raw
history blame
644 Bytes
# Copyright (c) OpenMMLab. All rights reserved.
import os
from loguru import logger
def redis_host():
host = os.getenv('REDIS_HOST')
if host is None or len(host) < 1:
raise Exception('REDIS_HOST not config')
return host
def redis_port():
port = os.getenv('REDIS_PORT')
if port is None:
logger.debug('REDIS_PORT not set, try 6379')
port = 6379
return port
def redis_passwd():
passwd = os.getenv('REDIS_PASSWORD')
if passwd is None or len(passwd) < 1:
raise Exception('REDIS_PASSWORD not config')
return passwd
def feature_store_base_dir():
return 'feature_stores'