MCPcopy
hub / github.com/baidu/amis / set

Method set

packages/office-viewer/src/excel/sheet/RangeCache.ts:34–40  ·  view source on GitHub ↗

* 设置缓存

(ranges: RangeRef[], key: string, value: any)

Source from the content-addressed store, hash-verified

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 * 获取缓存

Callers 15

getTotalHeightMethod · 0.45
getTotalWidthMethod · 0.45
addWidgetMethod · 0.45
drawImageWithCacheMethod · 0.45
customDrawWithCacheMethod · 0.45
checkFontFunction · 0.45
drawCellsFunction · 0.45
measureTextWithCacheFunction · 0.45
constructorMethod · 0.45
getResultByRangeFunction · 0.45
special.tsFile · 0.45
regFuncFunction · 0.45

Calls 2

hasMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected