Merge pull request #944 from oismaelash/v2.0.0

fix: buildkey function in hSet and hDelete
This commit is contained in:
Davidson Gomes 2024-10-03 16:33:47 -03:00 committed by GitHub
commit 8dee8a1ec0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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