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

Method removeCellCache

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

Source from the content-addressed store, hash-verified

107 }
108
109 removeCellCache(dsId: string, fieldId: string, recordId?: string) {
110 const ds = this.getDsCache(dsId);
111 if (!ds) {
112 return false;
113 }
114 if (!recordId) {
115 ds.cellValues.delete(fieldId);
116 return true;
117 }
118 const field = ds.cellValues.get(fieldId);
119 if (!field) {
120 return false;
121 }
122 return field.delete(recordId);
123 }
124
125 removeCellCacheByRecord(dsId: string, recordId: string) {
126 const fields = this.getDsFields(dsId);

Callers 6

index.tsFile · 0.80
setRecordFunction · 0.80
removeCacheFunction · 0.80

Calls 3

getDsCacheMethod · 0.95
deleteMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected