@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.
@@ -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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/backend-entity-manager",
3
- "version": "0.0.190",
3
+ "version": "0.0.191",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",