AbstractProtected Abstract_deleteProtected Abstract_getProtected Abstract_putProtected Abstract_updateInitialize the base persistence layer from the configuration settings
configuration object for the persistence layer
Retrieves idempotency key for the provided data and fetches data for that key from the persistence store
the data payload that will be hashed to create the hash portion of the idempotency key
Validates an existing record against the data payload being processed.
If the payload does not match the stored record, an IdempotencyValidationError error is thrown.
Whenever a record is retrieved from the persistence layer, it should be validated against the data payload being processed. This is to ensure that the data payload being processed is the same as the one that was used to create the record in the first place.
The record is also saved to the local cache if local caching is enabled.
the stored record to validate against
the data payload being processed and to be validated against the stored record
Saves a record indicating that the function's execution is currently in progress
the data payload that will be hashed to create the hash portion of the idempotency key
OptionalremainingTimeInMillis: numberthe remaining time left in the lambda execution context
Base class for all persistence layers. This class provides the basic functionality for saving, retrieving, and deleting idempotency records. It also provides the ability to configure the persistence layer from the idempotency config.