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; }