* This method will be invoked when the application stops
()
| 127 | * This method will be invoked when the application stops |
| 128 | */ |
| 129 | async stop(): Promise<void> { |
| 130 | debug('Stopping caching service'); |
| 131 | /* istanbul ignore if */ |
| 132 | if (this.timer) { |
| 133 | clearInterval(this.timer); |
| 134 | } |
| 135 | await this.clear(); |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * This method may be used to restart the service (and may be triggered by a |