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>;
}

IMPORT_PATH: "@daiso-tech/core/semaphore/contracts"

Type declaration