Type Alias ISemaphoreSlotData

ISemaphoreSlotData: ISemaphoreSlotExpirationData & { id: string }

Single semaphore slot data persisted in the database. Represents one unit/position in a limited resource pool.

Each slot has a unique id and tracks expiration time. When a request acquires a slot, the slot is marked with expiration. When expired or explicitly removed, the slot becomes available again.

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

Type declaration

  • id: string

    Unique identifier for this slot within the semaphore. Generated when a request acquires a slot. Used to release or update the specific slot later.