1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-02-07 09:48:24 +00:00
thatmattlove-hyperglass/hyperglass/configuration/models/cache.py
2020-01-28 09:52:54 -07:00

19 lines
479 B
Python

"""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