@merkl/api 0.10.110 → 0.10.111
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/modules/v4/cache/cache.model.d.ts +13 -0
- package/dist/src/modules/v4/cache/cache.repository.d.ts +4 -0
- package/dist/src/modules/v4/cache/cache.service.d.ts +8 -0
- package/dist/src/modules/v4/cache/index.d.ts +1 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -0,0 +1,8 @@
|
|
1
|
+
export declare abstract class CacheService {
|
2
|
+
#private;
|
3
|
+
private static encoder;
|
4
|
+
private static decoder;
|
5
|
+
static wrap<Fn extends (...args: Args) => Promise<unknown>, Args extends unknown[], T extends Awaited<ReturnType<Fn>>>(ttl: number, fn: Fn, ...args: Args): Promise<T>;
|
6
|
+
static set<Fn extends (...args: Args) => Promise<unknown>, Args extends unknown[], T extends Awaited<ReturnType<Fn>>>(ttl: number, fn: Fn, ...args: Args): Promise<T>;
|
7
|
+
static get<Fn extends (...args: Args) => Promise<unknown>, Args extends unknown[], T extends Awaited<ReturnType<Fn>>>(fn: Fn, args: Args): Promise<T | null>;
|
8
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./cache.service";
|