Skip to main content

ProductionConfig

Configuration for production deployments.

Attributes

AttributeTypeDescription
SECRET_KEYstrCryptographic key used for signing session cookies and protecting sensitive data, retrieved from the environment to ensure security in production.
PAGE_SIZEint = DEFAULT_PAGE_SIZEThe number of items to display per page in paginated API responses or views.

Constructor

Signature

def ProductionConfig()

Methods


get_cache_config()

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

Returns the configuration dictionary for the production cache layer, specifying a 600-second TTL and a maximum size of 4096 entries.

Returns

TypeDescription
Dict[str, Any]A dictionary containing the time-to-live and capacity constraints for the cache provider.