Function
imageClearCache
(engine: VisualNovelEngine, pattern?: string)
Source from the content-addressed store, hash-verified
| 88 | } |
| 89 | |
| 90 | export function imageClearCache(engine: VisualNovelEngine, pattern?: string): void { |
| 91 | if (!pattern) { |
| 92 | engine._imageCache.clear(); |
| 93 | } else { |
| 94 | for (const key of engine._imageCache.keys()) { |
| 95 | if (key.startsWith(pattern)) { |
| 96 | engine._imageCache.delete(key); |
| 97 | } |
| 98 | } |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | // ============================================================================ |
| 103 | // Combined Cache |
Callers
nothing calls this directly
Tested by
no test coverage detected