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
Copy file name to clipboardExpand all lines: README.md
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,12 @@ A suite of Python utilities for AWS Lambda functions to ease adopting best pract
16
16
***[Metrics](https://awslabs.github.io/aws-lambda-powertools-python/core/metrics/)** - Custom Metrics created asynchronously via CloudWatch Embedded Metric Format (EMF)
17
17
***[Bring your own middleware](https://awslabs.github.io/aws-lambda-powertools-python/utilities/middleware_factory/)** - Decorator factory to create your own middleware to run logic before, and after each Lambda invocation
18
18
***[Parameters utility](https://awslabs.github.io/aws-lambda-powertools-python/utilities/parameters/)** - Retrieve and cache parameter values from Parameter Store, Secrets Manager, or DynamoDB
***[Typing](https://awslabs.github.io/aws-lambda-powertools-python/utilities/typing)** - Static typing classes to speedup development in your IDE
21
-
***[Validation](https://awslabs.github.io/aws-lambda-powertools-python/utilities/validation)** - JSON Schema validator for inbound events and responses
22
-
***[Event source data classes](https://awslabs.github.io/aws-lambda-powertools-python/utilities/data_classes)** - Data classes describing the schema of common Lambda event triggers
23
-
***[Parser](https://awslabs.github.io/aws-lambda-powertools-python/utilities/parser)** - Data parsing and deep validation using Pydantic
***[Typing](https://awslabs.github.io/aws-lambda-powertools-python/utilities/typing/)** - Static typing classes to speedup development in your IDE
21
+
***[Validation](https://awslabs.github.io/aws-lambda-powertools-python/utilities/validation/)** - JSON Schema validator for inbound events and responses
22
+
***[Event source data classes](https://awslabs.github.io/aws-lambda-powertools-python/utilities/data_classes/)** - Data classes describing the schema of common Lambda event triggers
23
+
***[Parser](https://awslabs.github.io/aws-lambda-powertools-python/utilities/parser/)** - Data parsing and deep validation using Pydantic
24
+
***[Idempotency](https://awslabs.github.io/aws-lambda-powertools-python/utilities/idempotency/)** - Convert your Lambda functions into idempotent operations which are safe to retry
**raise_on_no_idempotency_key** | `False` | Raise exception if no idempotency key was found in the request
260
261
**expires_after_seconds** | 3600 | The number of seconds to wait before a record is expired
261
262
**use_local_cache** | `False` | Whether to locally cache idempotency results
262
-
**local_cache_max_items** | 1024 | Max number of items to store in local cache
263
+
**local_cache_max_items** | 256 | Max number of items to store in local cache
263
264
**hash_function** | `md5` | Function to use for calculating hashes, as provided by [hashlib](https://docs.python.org/3/library/hashlib.html) in the standard library.
264
265
265
266
### Handling concurrent executions with the same payload
@@ -281,16 +282,15 @@ You can enable in-memory caching with the **`use_local_cache`** parameter:
281
282
282
283
=== "app.py"
283
284
284
-
```python hl_lines="6 8 11"
285
+
```python hl_lines="8 11"
285
286
from aws_lambda_powertools.utilities.idempotency import (
0 commit comments