From 07845bf4d024f2c62d656201beb97123a3052a3a Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 13 Jul 2023 08:26:29 -0400 Subject: [PATCH] fix: need to disable useClones in node cache --- src/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store.ts b/src/store.ts index 513d5e0..8cc8f95 100644 --- a/src/store.ts +++ b/src/store.ts @@ -14,7 +14,7 @@ export interface StoreItem { } export default class Store implements IStore { - private store = new NodeCache(); + private store = new NodeCache({ useClones: false }); constructor(expire: number = 0) { this.store.options.stdTTL = 0;