Skip to main content

ProductionConfig

Configuration for production deployments.

Attributes

AttributeTypeDescription
SECRET_KEYstr = os.environ["SECRET_KEY"]Cryptographic key used for signing session cookies and securing sensitive data, retrieved from the environment's SECRET_KEY variable.
PAGE_SIZEint = DEFAULT_PAGE_SIZEThe maximum number of items to display per page in paginated API responses.

Methods


get_cache_config()

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

Retrieves the configuration settings for the production cache layer, specifying a 10-minute time-to-live and a maximum size of 4096 entries.

Returns

TypeDescription
Dict[str, Any]A dictionary containing the TTL and max_size parameters used to initialize the cache provider.