We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 09eaba9 + a19343d commit 256bd3eCopy full SHA for 256bd3e
src/api/services/cache.service.ts
@@ -21,6 +21,9 @@ export class CacheService {
21
}
22
23
public async hGet(key: string, field: string) {
24
+ if (!this.cache) {
25
+ return null;
26
+ }
27
try {
28
const data = await this.cache.hGet(key, field);
29
@@ -43,6 +46,9 @@ export class CacheService {
43
46
44
47
45
48
public async hSet(key: string, field: string, value: any) {
49
50
+ return;
51
52
53
const json = JSON.stringify(value, BufferJSON.replacer);
54
@@ -67,6 +73,9 @@ export class CacheService {
67
73
68
74
69
75
async hDelete(key: string, field: string) {
76
77
+ return false;
78
70
79
71
80
await this.cache.hDelete(key, field);
72
81
return true;
0 commit comments