Creates the idempotency plugin, which registers an IIdempotencyService under CAPABILITIES.IDEMPOTENCY and the idempotency health indicator.
IIdempotencyService
CAPABILITIES.IDEMPOTENCY
idempotency
Optional
The plugin options
A plugin registering the idempotency service
When an option's shape is invalid
app.register(IdempotencyPlugin({ store: { type: 'memory' } }));app.register(IdempotencyPlugin({ store: { type: 'redis', namespace: 'shop', url: REDIS_URL } })); Copy
app.register(IdempotencyPlugin({ store: { type: 'memory' } }));app.register(IdempotencyPlugin({ store: { type: 'redis', namespace: 'shop', url: REDIS_URL } }));
0.9.0
Creates the idempotency plugin, which registers an
IIdempotencyServiceunderCAPABILITIES.IDEMPOTENCYand theidempotencyhealth indicator.