Type Alias MongodbSharedLockAdapterSettings

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

Configuration for MongodbSharedLockAdapter. Requires a MongoDB Db instance.

IMPORT_PATH: "@daiso-tech/core/shared-lock/mongodb-shared-lock-adapter"

Type declaration

  • OptionalcollectionName?: string

    Name of the MongoDB collection used to store shared-lock records.

    "sharedLock"
    
  • OptionalcollectionSettings?: CollectionOptions

    Additional options passed when creating or accessing the MongoDB collection.

  • database: Db

    The MongoDB Db instance to store shared-lock state in.