* 设置缓存
(ranges: RangeRef[], key: string, value: any)
| 32 | * 设置缓存 |
| 33 | */ |
| 34 | public set(ranges: RangeRef[], key: string, value: any) { |
| 35 | const cacheKey = ranges.map(rangeCacheKey).join(' '); |
| 36 | if (!this.cache.has(cacheKey)) { |
| 37 | this.cache.set(cacheKey, new Map()); |
| 38 | } |
| 39 | this.cache.get(cacheKey)!.set(key, value); |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * 获取缓存 |
no test coverage detected