Skip to main content

ProductionConfig

Configuration for production deployments.

Attributes

AttributeTypeDescription
SECRET_KEYstr = os.environ["SECRET_KEY"]Stores a string used for cryptographic operations, typically for signing session cookies or other security-related tasks, and is retrieved from the environment variable 'SECRET_KEY'.
PAGE_SIZEint = DEFAULT_PAGE_SIZEDefines the default number of items to display per page in paginated results.

Methods


get_cache_config()

def get_cache_config(self) -> Dict[str, Any]: ...

Builds and returns the cache configuration dictionary. This method is used to define the caching parameters for the application, including time-to-live and maximum size.

Returns

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