Skip to main content

ProductionConfig

Configuration for production deployments.

Attributes

AttributeTypeDescription
SECRET_KEYstringThe secret key used for signing session cookies and other security-sensitive operations, loaded from the environment variable 'SECRET_KEY'.
PAGE_SIZEintegerThe default number of items to display per page in paginated results.

Methods


get_cache_config()

@classmethod
def get_cache_config() - > Dict[str, Any]

Builds and returns the cache configuration dictionary. This includes settings like time-to-live (TTL) and maximum size for cache entries.

Returns

TypeDescription
Dict[str, Any]A dictionary containing cache configuration parameters such as 'ttl' and 'max_size'.