File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/e2e/idempotency_redis/handlers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
2
3
3
from aws_lambda_powertools .utilities .idempotency import (
4
- DynamoDBPersistenceLayer ,
5
4
IdempotencyConfig ,
6
5
idempotent ,
7
6
)
8
7
from aws_lambda_powertools .utilities .idempotency .persistence .datarecord import (
9
8
DataRecord ,
10
9
)
10
+ from aws_lambda_powertools .utilities .idempotency .persistence .redis import RedisCachePersistenceLayer
11
11
12
- TABLE_NAME = os .getenv ("IdempotencyTable " , "" )
13
- persistence_layer = DynamoDBPersistenceLayer ( table_name = TABLE_NAME )
12
+ REDIS_HOST = os .getenv ("RedisEndpoint " , "" )
13
+ persistence_layer = RedisCachePersistenceLayer ( host = REDIS_HOST , port = 6379 )
14
14
15
15
16
16
def my_response_hook (response : dict , idempotent_data : DataRecord ) -> dict :
You can’t perform that action at this time.
0 commit comments