(dsId: string, fieldId: string, recordId: string, value: ICellValueData)
| 89 | } |
| 90 | |
| 91 | addCellCache(dsId: string, fieldId: string, recordId: string, value: ICellValueData) { |
| 92 | // Check if the table cache exists |
| 93 | let dsCache = this.getDsCache(dsId); |
| 94 | if (!dsCache) { |
| 95 | dsCache = { |
| 96 | cellValues: new Map(), |
| 97 | }; |
| 98 | this.dsMap.set(dsId, dsCache); |
| 99 | } |
| 100 | // Check if the column cache exists |
| 101 | let fieldCache = dsCache.cellValues.get(fieldId); |
| 102 | if (!fieldCache) { |
| 103 | fieldCache = new Map(); |
| 104 | dsCache.cellValues.set(fieldId, fieldCache); |
| 105 | } |
| 106 | fieldCache.set(recordId, value); |
| 107 | } |
| 108 | |
| 109 | removeCellCache(dsId: string, fieldId: string, recordId?: string) { |
| 110 | const ds = this.getDsCache(dsId); |
no test coverage detected