new api service and logic implemented
This commit is contained in:
29
ApiLayers/AllConfigs/Redis/configs.py
Normal file
29
ApiLayers/AllConfigs/Redis/configs.py
Normal file
@@ -0,0 +1,29 @@
|
||||
from AllConfigs import HostConfig
|
||||
|
||||
|
||||
class WagRedis:
|
||||
REDIS_HOST = HostConfig.MAIN_HOST
|
||||
REDIS_PASSWORD: str = "commercial_redis_password"
|
||||
REDIS_PORT: int = 11222
|
||||
REDIS_DB: int = 0
|
||||
|
||||
@classmethod
|
||||
def as_dict(cls):
|
||||
return dict(
|
||||
host=WagRedis.REDIS_HOST,
|
||||
password=WagRedis.REDIS_PASSWORD,
|
||||
port=WagRedis.REDIS_PORT,
|
||||
db=WagRedis.REDIS_DB,
|
||||
)
|
||||
|
||||
class RedisCategoryKeys:
|
||||
LANGUAGE_MODELS: str = "LANGUAGE_MODELS"
|
||||
VALIDATION_USER: str = "VALIDATION_USER"
|
||||
CLUSTER_FUNCTION_CODES: str = "CLUSTER_FUNCTION_CODES"
|
||||
METHOD_FUNCTION_CODES: str = "METHOD_FUNCTION_CODES"
|
||||
MENU_FIRST_LAYER: str = "MENU_FIRST_LAYER"
|
||||
PAGE_MAPPER: str = "PAGE_MAPPER"
|
||||
MENU_MAPPER: str = "MENU_MAPPER"
|
||||
AUTH: str = "AUTH"
|
||||
OCC: str = "Occupant"
|
||||
EMP: str = "Employee"
|
||||
Reference in New Issue
Block a user