Type Alias IDatabaseSemaphoreTransaction
IDatabaseSemaphoreTransaction: { findSemaphore(key: string): Promise<null | ISemaphoreData>; findSlots(key: string): Promise<ISemaphoreSlotData[]>; upsertSemaphore(key: string, limit: number): Promise<void>; upsertSlot( key: string, slotId: string, expiration: null | Date, ): Promise<void>;} Type declaration
findSemaphore:function
findSlots:function
upsertSemaphore:function
- upsertSemaphore(key: string, limit: number): Promise<void>
Returns Promise<void>
upsertSlot:function
- upsertSlot(key: string, slotId: string, expiration: null | Date): Promise<void>
Parameters
- key: string
- slotId: string
- expiration: null | Date
Returns Promise<void>
IMPORT_PATH:
"@daiso-tech/core/semaphore/contracts"