Defines a rule that listens for a particular VendureEvent and uses that to make calls to the Stellate Purging API via the provided StellateService instance.
Type<Event>number | undefined(handlerArgs: { events: Event[]; stellateService: StellateService; injector: Injector }) => (config: PurgeRuleConfig<Event>) => PurgeRuleConfigures a PurgeRule.
Type<Event>Specifies which VendureEvent will trigger this purge rule.
number5000How long to buffer events for in milliseconds before executing the handler. This allows us to efficiently batch calls to the Stellate Purge API.
(handlerArgs: { events: Event[]; stellateService: StellateService; injector: Injector; }) => void | Promise<void>The function to invoke when the specified event is published. This function should use the StellateService instance to call the Stellate Purge API.