fix: buildkey function in hSet and hDelete

This commit is contained in:
oismaelash 2024-10-03 14:44:46 -03:00
parent 0ad330bdb3
commit 49327593a9

View File

@ -73,7 +73,7 @@ export class LocalCache implements ICache {
} }
hash[field] = json; hash[field] = json;
LocalCache.localCache.set(key, hash); LocalCache.localCache.set(this.buildKey(key), hash);
} catch (error) { } catch (error) {
this.logger.error(error); this.logger.error(error);
@ -86,7 +86,7 @@ export class LocalCache implements ICache {
if (data && field in data) { if (data && field in data) {
delete data[field]; delete data[field];
LocalCache.localCache.set(key, data); LocalCache.localCache.set(this.buildKey(key), data);
return 1; return 1;
} }