@punks/backend-entity-manager 0.0.190 → 0.0.191
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/dist/cjs/index.js +3 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/cache.d.ts +1 -0
- package/dist/cjs/types/integrations/cache/typeorm/instance.d.ts +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/cache.d.ts +1 -0
- package/dist/esm/types/integrations/cache/typeorm/instance.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ export type CacheTtl = {
|
|
|
3
3
|
unit: "years" | "months" | "days" | "hours" | "minutes" | "seconds";
|
|
4
4
|
};
|
|
5
5
|
export interface ICacheInstance {
|
|
6
|
+
getInstanceName(): string;
|
|
6
7
|
getAll<T>(): Promise<T[]>;
|
|
7
8
|
get<T>(key: string): Promise<T | undefined>;
|
|
8
9
|
set<T>(key: string, input: {
|
|
@@ -5,6 +5,7 @@ export declare abstract class TypeormCacheInstance<TEntity extends ICacheDatabas
|
|
|
5
5
|
protected readonly instanceName: string;
|
|
6
6
|
private readonly logger;
|
|
7
7
|
constructor(instanceName: string);
|
|
8
|
+
getInstanceName(): string;
|
|
8
9
|
retrieve<T>(key: string, input: {
|
|
9
10
|
ttl: CacheTtl;
|
|
10
11
|
valueFactory: () => Promise<T>;
|
package/dist/index.d.ts
CHANGED
|
@@ -589,6 +589,7 @@ type CacheTtl = {
|
|
|
589
589
|
unit: "years" | "months" | "days" | "hours" | "minutes" | "seconds";
|
|
590
590
|
};
|
|
591
591
|
interface ICacheInstance {
|
|
592
|
+
getInstanceName(): string;
|
|
592
593
|
getAll<T>(): Promise<T[]>;
|
|
593
594
|
get<T>(key: string): Promise<T | undefined>;
|
|
594
595
|
set<T>(key: string, input: {
|
|
@@ -1288,6 +1289,7 @@ declare abstract class TypeormCacheInstance<TEntity extends ICacheDatabaseItem>
|
|
|
1288
1289
|
protected readonly instanceName: string;
|
|
1289
1290
|
private readonly logger;
|
|
1290
1291
|
constructor(instanceName: string);
|
|
1292
|
+
getInstanceName(): string;
|
|
1291
1293
|
retrieve<T>(key: string, input: {
|
|
1292
1294
|
ttl: CacheTtl;
|
|
1293
1295
|
valueFactory: () => Promise<T>;
|