Skip to content

Commit 4932759

Browse files
committed
fix: buildkey function in hSet and hDelete
1 parent 0ad330b commit 4932759

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cache/localcache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class LocalCache implements ICache {
7373
}
7474

7575
hash[field] = json;
76-
LocalCache.localCache.set(key, hash);
76+
LocalCache.localCache.set(this.buildKey(key), hash);
7777

7878
} catch (error) {
7979
this.logger.error(error);
@@ -86,7 +86,7 @@ export class LocalCache implements ICache {
8686

8787
if (data && field in data) {
8888
delete data[field];
89-
LocalCache.localCache.set(key, data);
89+
LocalCache.localCache.set(this.buildKey(key), data);
9090
return 1;
9191
}
9292

0 commit comments

Comments
 (0)