1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

20 lines
479 B
Python
Raw Normal View History

2020-01-28 09:52:54 -07:00
"""Validation model for Redis cache config."""
# Third Party Imports
from pydantic import StrictBool
from pydantic import StrictInt
from pydantic import StrictStr
# Project Imports
from hyperglass.configuration.models._utils import HyperglassModel
class Cache(HyperglassModel):
"""Validation model for params.cache."""
host: StrictStr = "localhost"
port: StrictInt = 6379
database: StrictInt = 0
timeout: StrictInt = 120
show_text: StrictBool = True