Refactors Project for More Declarative Package Name
This commit is contained in:
12
storage_service/config/config_redis.py
Normal file
12
storage_service/config/config_redis.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from dotenv import load_dotenv
|
||||
|
||||
import os
|
||||
|
||||
|
||||
def get_config_redis():
|
||||
load_dotenv()
|
||||
return {
|
||||
"host": os.environ.get("REDIS_HOST", "localhost"),
|
||||
"port": os.environ.get("REDIS_PORT", 6379),
|
||||
"password": os.environ.get("REDIS_PASSWORD", None),
|
||||
}
|
||||
Reference in New Issue
Block a user