Skip to content

Commit

Permalink
feat(cachers): add lock functions
Browse files Browse the repository at this point in the history
  • Loading branch information
thib3113 committed Nov 13, 2022
1 parent adec402 commit 339505a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,8 @@ declare namespace Moleculer {
meta: object | null,
keys: Array<string> | null
): string;
tryLock(key: string | Array<string>, ttl?: number): Promise<() => Promise<void>>
lock(key: string | Array<string>, ttl?: number): Promise<() => Promise<void>>
}

class Memory extends Base {
Expand Down

0 comments on commit 339505a

Please sign in to comment.