Type Alias MongodbSemaphoreAdapterSettings

MongodbSemaphoreAdapterSettings: {
    collectionName?: string;
    collectionSettings?: CollectionOptions;
    database: Db;
}

Configuration for MongodbSemaphoreAdapter. Requires a MongoDB Db instance.

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

Type declaration

  • OptionalcollectionName?: string

    Name of the MongoDB collection used to store semaphore records.

    "semaphore"
    
  • OptionalcollectionSettings?: CollectionOptions

    Additional options passed when creating or accessing the MongoDB collection.

  • database: Db

    The MongoDB Db instance to store semaphore state in.