🔧 chore(base.py): add Redis configuration options to base settings for better flexibility and customization
This commit is contained in:
parent
a6322461c0
commit
e74fc00442
1 changed files with 6 additions and 0 deletions
|
|
@ -42,6 +42,12 @@ class Settings(BaseSettings):
|
|||
COMPONENTS_PATH: List[str] = []
|
||||
LANGCHAIN_CACHE: str = "InMemoryCache"
|
||||
|
||||
# Redis
|
||||
REDIS_HOST: str = "localhost"
|
||||
REDIS_PORT: int = 6379
|
||||
REDIS_DB: int = 0
|
||||
REDIS_CACHE_EXPIRE: int = 3600
|
||||
|
||||
@validator("CONFIG_DIR", pre=True, allow_reuse=True)
|
||||
def set_langflow_dir(cls, value):
|
||||
if not value:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue