()
| 108 | } |
| 109 | |
| 110 | protected async getCache(): Promise<rules | undefined> { |
| 111 | return api.storage.get(`${this.type}/${this.cacheKey}/Rules`).then(state => { |
| 112 | if (state) state.cache = true; |
| 113 | return state; |
| 114 | }); |
| 115 | } |
| 116 | |
| 117 | protected setCache(cache: rules) { |
| 118 | cache = JSON.parse(JSON.stringify(cache)); |
no test coverage detected