OptionalcreateLockId?: Invokable<[], string>You can pass your lock id id generator function.
OptionaldefaultBlockingInterval?: ITimeSpanThe default refresh time used in the ISharedLock acquireBlocking and runBlocking methods.
OptionaldefaultBlockingTime?: ITimeSpanThe default refresh time used in the ISharedLock acquireBlocking and runBlocking methods.
OptionaldefaultRefreshTime?: ITimeSpanThe default refresh time used in the ISharedLock referesh method.
TimeSpan.fromMinutes(5);
OptionaldefaultTtl?: ITimeSpan | nullYou can decide the default ttl value for ISharedLock expiration. If null is passed then no ttl will be used by default.
OptionaleventBus?: IEventBusOptionalnamespace?: NamespaceOptionalserdeTransformerName?: string
IMPORT_PATH:
"@daiso-tech/core/shared-lock"