You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**Max Age**| Adjusts for how long values are kept in cache (in seconds). |`POWERTOOLS_PARAMETERS_MAX_AGE`|`5`|
146
+
|**Max Age**| Adjusts for how long values are kept in cache (in seconds). |`POWERTOOLS_PARAMETERS_MAX_AGE`|`300`|
147
147
|**Debug Sample Rate**| Sets whether to decrypt or not values retrieved from AWS SSM Parameters Store. |`POWERTOOLS_PARAMETERS_SSM_DECRYPT`|`false`|
148
148
149
149
You can also use [`POWERTOOLS_PARAMETERS_MAX_AGE`](#adjusting-cache-ttl) through the `max_age` parameter and [`POWERTOOLS_PARAMETERS_SSM_DECRYPT`](#ssmprovider) through the `decrypt` parameter to override the environment variable values.
@@ -155,7 +155,7 @@ You can also use [`POWERTOOLS_PARAMETERS_MAX_AGE`](#adjusting-cache-ttl) through
155
155
???+ tip
156
156
`max_age` parameter is also available in underlying provider functions like `get()`, `get_multiple()`, etc.
157
157
158
-
By default, we cache parameters retrieved in-memory for 5 seconds. If you want to change this default value and set the same TTL for all parameters, you can set the `POWERTOOLS_PARAMETERS_MAX_AGE` environment variable. **You can still set `max_age` for individual parameters**.
158
+
By default, we cache parameters retrieved in-memory for 300 seconds (5 minutes). If you want to change this default value and set the same TTL for all parameters, you can set the `POWERTOOLS_PARAMETERS_MAX_AGE` environment variable. **You can still set `max_age` for individual parameters**.
159
159
160
160
You can adjust how long we should keep values in cache by using the param `max_age`, when using `get_parameter()`, `get_parameters()` and `get_secret()` methods across all providers.
161
161
@@ -446,8 +446,8 @@ Here is the mapping between this utility's functions and methods and the underly
446
446
| SSM Parameter Store |`SSMProvider.get_multiple`|`ssm`|[get_parameters_by_path](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ssm.html#SSM.Client.get_parameters_by_path){target="_blank"} |
0 commit comments