From 49327593a9a59334a289b9a1f66b2785aab28e50 Mon Sep 17 00:00:00 2001 From: oismaelash Date: Thu, 3 Oct 2024 14:44:46 -0300 Subject: [PATCH] fix: buildkey function in hSet and hDelete --- src/cache/localcache.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cache/localcache.ts b/src/cache/localcache.ts index 7e328195..1c6b3510 100644 --- a/src/cache/localcache.ts +++ b/src/cache/localcache.ts @@ -73,7 +73,7 @@ export class LocalCache implements ICache { } hash[field] = json; - LocalCache.localCache.set(key, hash); + LocalCache.localCache.set(this.buildKey(key), hash); } catch (error) { this.logger.error(error); @@ -86,7 +86,7 @@ export class LocalCache implements ICache { if (data && field in data) { delete data[field]; - LocalCache.localCache.set(key, data); + LocalCache.localCache.set(this.buildKey(key), data); return 1; }