Skip to content

basalt / drives/src / NotificationReplayGuard

Interface: NotificationReplayGuard ​

Defined in: drives/src/notifications.ts:62

Collapses duplicate notifications. Back it with @basaltkit/cache in production.

Methods ​

firstSeen() ​

> firstSeen(key, ttlMs): Promise<boolean>

Defined in: drives/src/notifications.ts:64

true the first time this key is seen within the window, false afterwards.

Parameters ​

key ​

string

ttlMs ​

number

Returns ​

Promise<boolean>

Released under the MIT License.