ISharedLockFactory: {
    create(
        key: string,
        settings: SharedLockFactoryCreateSettings,
    ): ISharedLock;
}

The ISharedLockFactory contract defines a way for managing locks independent of the underlying technology. It comes with more convenient methods compared to ISharedLockAdapter.

IMPORT_PATH: "@daiso-tech/core/shared-lock/contracts"

Type declaration