BaseConfig
Base configuration shared across all environments.
Attributes
| Attribute | Type | Description |
|---|---|---|
| SECRET_KEY | string = change-me | Cryptographic key used for signing session cookies and protecting sensitive data, defaulting to an environment variable or a fallback string. |
| DEBUG | boolean = false | Boolean flag that enables or disables the application's debug mode for troubleshooting. |
| TESTING | boolean = false | Boolean flag indicating whether the application is running in a test environment to modify error handling or logging. |
| PAGE_SIZE | integer = DEFAULT_PAGE_SIZE | The number of records to return per page in paginated responses, constrained by the system's maximum page size. |
Methods
get_cache_config()
@classmethod
def get_cache_config() - > Dict[string, Any]
Return cache settings for this environment.
Returns
| Type | Description |
|---|---|
Dict[string, Any] | A dictionary containing the environment-specific cache configuration settings. |