🔧 chore(base.py): add Redis configuration options to base settings for better flexibility and customization

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-09-05 15:34:20 -03:00
commit e74fc00442

View file

@ -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: