ProductionConfig
Configuration for production deployments.
Attributes
| Attribute | Type | Description |
|---|---|---|
| SECRET_KEY | str = os.environ["SECRET_KEY"] | Cryptographic key used for signing session cookies and securing sensitive data, retrieved from the environment's SECRET_KEY variable. |
| PAGE_SIZE | int = DEFAULT_PAGE_SIZE | The 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
| Type | Description |
|---|---|
Dict[str, Any] | A dictionary containing the TTL and max_size parameters used to initialize the cache provider. |