fix: need to disable useClones in node cache

This commit is contained in:
Derrick Hammer 2023-07-13 08:26:29 -04:00
parent cbc652ccb1
commit 07845bf4d0
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ export interface StoreItem {
} }
export default class Store implements IStore { export default class Store implements IStore {
private store = new NodeCache(); private store = new NodeCache({ useClones: false });
constructor(expire: number = 0) { constructor(expire: number = 0) {
this.store.options.stdTTL = 0; this.store.options.stdTTL = 0;