Type Alias KyselySemaphoreAdapterSettings

KyselySemaphoreAdapterSettings: {
    enableTransactions?: boolean;
    expiredKeysRemovalInterval?: ITimeSpan;
    kysely: Kysely<KyselySemaphoreTables>;
    shouldRemoveExpiredKeys?: boolean;
}

IMPORT_PATH: "@daiso-tech/core/semaphore/kysely-semaphore-adapter"

Type declaration

  • OptionalenableTransactions?: boolean
    import { Transaction } from "kysely"

    !(settings.kysely instanceof Transaction)
  • OptionalexpiredKeysRemovalInterval?: ITimeSpan
    import { TimeSpan } from "@daiso-tech/core/time-span";

    TimeSpan.fromMinutes(1)
  • kysely: Kysely<KyselySemaphoreTables>
  • OptionalshouldRemoveExpiredKeys?: boolean
    true