Skip to content

Commit fe5a02e

Browse files
committed
Fix Problem in Cache adapter with the connect class:
that the dataPath is there but we don't need it this was something wrong from me i forgot to add that the cache adapter doesn't need it in the connect class
1 parent 1022c9d commit fe5a02e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/adapters/cache.adapter.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ export class CacheAdapter extends EventEmitter implements ICacheAdapter {
2121
* Create a new CacheAdapter instance
2222
* @param {AdapterSetting & { maxSize?: number, ttl?: number }} options - Cache settings including maxSize and ttl
2323
*/
24-
constructor(options: AdapterSetting & { maxSize?: number; ttl?: number }) {
24+
constructor(
25+
options: AdapterSetting & {
26+
dataPath?: string;
27+
maxSize?: number;
28+
ttl?: number;
29+
}
30+
) {
2531
super();
2632
this.devLogs = options.devLogs;
2733
this.cache = new Map();

src/core/connect.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default class connect extends EventEmitter {
9494
enable: this.devLogs?.enable,
9595
path: this.devLogs?.path,
9696
},
97-
dataPath: this.dataPath,
97+
dataPath: "",
9898
maxSize: this.maxSize,
9999
ttl: this.ttl,
100100
};

0 commit comments

Comments
 (0)