ProductionConfig
Configuration for production deployments.
Attributes
| Attribute | Type | Description |
|---|---|---|
| SECRET_KEY | str | Cryptographic key used for signing session cookies and protecting sensitive data, retrieved from the environment to ensure security in production. |
| PAGE_SIZE | int = DEFAULT_PAGE_SIZE | The 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
| Type | Description |
|---|---|
Dict[str, Any] | A dictionary containing the time-to-live and capacity constraints for the cache provider. |