@tsed/platform-cache 7.29.0 → 7.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jest.config.js +3 -3
- package/lib/cjs/interceptors/PlatformCacheInterceptor.js +2 -2
- package/lib/cjs/interceptors/PlatformCacheInterceptor.js.map +1 -1
- package/lib/cjs/services/PlatformCache.js +6 -5
- package/lib/cjs/services/PlatformCache.js.map +1 -1
- package/lib/esm/interceptors/PlatformCacheInterceptor.js +2 -2
- package/lib/esm/interceptors/PlatformCacheInterceptor.js.map +1 -1
- package/lib/esm/services/PlatformCache.js +6 -5
- package/lib/esm/services/PlatformCache.js.map +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/interceptors/PlatformCacheInterceptor.d.ts +1 -1
- package/lib/types/services/PlatformCache.d.ts +2 -2
- package/package.json +11 -11
|
@@ -9,7 +9,7 @@ import { PlatformCache } from "../services/PlatformCache";
|
|
|
9
9
|
export declare class PlatformCacheInterceptor implements InterceptorMethods {
|
|
10
10
|
protected cache: PlatformCache;
|
|
11
11
|
protected logger: Logger;
|
|
12
|
-
intercept(context: InterceptorContext<any, PlatformCacheOptions>, next: InterceptorNext):
|
|
12
|
+
intercept(context: InterceptorContext<any, PlatformCacheOptions>, next: InterceptorNext): unknown;
|
|
13
13
|
canRefreshInBackground(key: string, { refreshThreshold, ttl }: {
|
|
14
14
|
refreshThreshold?: number;
|
|
15
15
|
ttl: any;
|
|
@@ -20,7 +20,7 @@ export declare class PlatformCache {
|
|
|
20
20
|
defaultKeyResolver(): (args: any[], ctx?: any) => string;
|
|
21
21
|
defaultTtl(): Ttl;
|
|
22
22
|
calculateTTL(result?: any, currentTtl?: Ttl): number;
|
|
23
|
-
ttl(key: string): Promise<
|
|
23
|
+
ttl(key: string): Promise<void> | Promise<number>;
|
|
24
24
|
wrap<T>(key: string, fetch: () => Promise<T>, ttl?: number): Promise<T>;
|
|
25
25
|
get<T>(key: string, options?: JsonDeserializerOptions): Promise<T | undefined>;
|
|
26
26
|
set<T>(key: string, value: any, options?: CachingConfig<T>): Promise<T | undefined>;
|
|
@@ -35,6 +35,6 @@ export declare class PlatformCache {
|
|
|
35
35
|
deleteMatchingKeys(patterns: string): Promise<string[]>;
|
|
36
36
|
protected createCacheManager(settings: PlatformCacheSettings): Promise<MultiCache | import("cache-manager").MemoryCache>;
|
|
37
37
|
private mapStore;
|
|
38
|
-
refresh(callback: () => Promise<any>):
|
|
38
|
+
refresh(callback: () => Promise<any> | any): any;
|
|
39
39
|
isForceRefresh(): boolean;
|
|
40
40
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/platform-cache",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.30.0",
|
|
4
4
|
"description": "Platform cache module for Ts.ED Framework",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -27,20 +27,20 @@
|
|
|
27
27
|
"tslib": "2.5.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@tsed/core": "7.
|
|
31
|
-
"@tsed/di": "7.
|
|
32
|
-
"@tsed/eslint": "7.
|
|
33
|
-
"@tsed/json-mapper": "7.
|
|
34
|
-
"@tsed/schema": "7.
|
|
35
|
-
"@tsed/typescript": "7.
|
|
30
|
+
"@tsed/core": "7.30.0",
|
|
31
|
+
"@tsed/di": "7.30.0",
|
|
32
|
+
"@tsed/eslint": "7.30.0",
|
|
33
|
+
"@tsed/json-mapper": "7.30.0",
|
|
34
|
+
"@tsed/schema": "7.30.0",
|
|
35
|
+
"@tsed/typescript": "7.30.0",
|
|
36
36
|
"@types/micromatch": "^4.0.1",
|
|
37
37
|
"eslint": "^8.12.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@tsed/core": "^7.
|
|
41
|
-
"@tsed/di": "^7.
|
|
42
|
-
"@tsed/json-mapper": "^7.
|
|
43
|
-
"@tsed/schema": "^7.
|
|
40
|
+
"@tsed/core": "^7.30.0",
|
|
41
|
+
"@tsed/di": "^7.30.0",
|
|
42
|
+
"@tsed/json-mapper": "^7.30.0",
|
|
43
|
+
"@tsed/schema": "^7.30.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"@tsed/core": {
|