MCPcopy Create free account
hub / github.com/apitable/apitable / getCellCache

Method getCellCache

packages/core/src/cache_manager/cache.ts:139–149  ·  view source on GitHub ↗
(dsId: string, fieldId: string, recordId: string)

Source from the content-addressed store, hash-verified

137 }
138
139 getCellCache(dsId: string, fieldId: string, recordId: string) {
140 const ds = this.getDsCache(dsId);
141 if (!ds) {
142 return NO_CACHE;
143 }
144 const field = ds.cellValues.get(fieldId);
145 if (!field) {
146 return NO_CACHE;
147 }
148 return field.get(recordId) || NO_CACHE;
149 }
150
151 clearCache() {
152 this.dsMap.reset();

Callers 4

getCellValueFunction · 0.80
getStringifyCellValueFunction · 0.80
index.tsFile · 0.80

Calls 2

getDsCacheMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected