Type Alias MongodbLockAdapterSettings

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

Configuration for MongodbLockAdapter. Requires a MongoDB Db instance.

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

Type declaration

  • OptionalcollectionName?: string

    Name of the MongoDB collection used to store lock records.

    "lock"
    
  • OptionalcollectionSettings?: CollectionOptions

    Additional options passed when creating or accessing the MongoDB collection.

  • database: Db

    The MongoDB Db instance to store lock state in.