From 339505a1123402b8c1b0022ccca4c7af096dd034 Mon Sep 17 00:00:00 2001 From: thibaut severac Date: Mon, 14 Nov 2022 00:20:20 +0100 Subject: [PATCH] feat(cachers): add lock functions --- index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.d.ts b/index.d.ts index 117812899..d5f4aebd6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1437,6 +1437,8 @@ declare namespace Moleculer { meta: object | null, keys: Array | null ): string; + tryLock(key: string | Array, ttl?: number): Promise<() => Promise> + lock(key: string | Array, ttl?: number): Promise<() => Promise> } class Memory extends Base {