ProductionConfig
Configuration for production deployments.
Attributes
| Attribute | Type | Description |
|---|---|---|
| SECRET_KEY | str = 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_SIZE | int = DEFAULT_PAGE_SIZE | Defines 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
| Type | Description |
|---|---|
Dict[str, Any] | A dictionary containing cache configuration settings, such as 'ttl' and 'max_size'. |