Method
hDelete
(key: string, field: string)
Source from the content-addressed store, hash-verified
| 83 | } |
| 84 | |
| 85 | async hDelete(key: string, field: string) { |
| 86 | try { |
| 87 | const data = LocalCache.localCache.get(this.buildKey(key)) as object; |
| 88 | |
| 89 | if (data && field in data) { |
| 90 | delete data[field]; |
| 91 | LocalCache.localCache.set(this.buildKey(key), data); |
| 92 | return 1; |
| 93 | } |
| 94 | |
| 95 | return 0; |
| 96 | } catch (error) { |
| 97 | this.logger.error(error); |
| 98 | } |
| 99 | } |
| 100 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected