This NoOpLockAdapter will do nothing and is used for easily mocking ILockProvider for testing.

IMPORT_PATH: "@daiso-tech/core/lock/adapters"

Implements

Constructors

Methods

  • The refresh method will upadte ttl of lock if it matches the owner and is expireable.

    Parameters

    • _key: string
    • _lockId: string
    • _ttl: TimeSpan

    Returns Promise<boolean>

    Returns false if the lock is unexpireable, the is expired, does not match the owner otherwise true is returned.