(ctx context.Context, docID string, cv *Version, collectionID uint32, toDelta RevisionDelta)
| 194 | } |
| 195 | |
| 196 | func (rc *LRURevisionCache) UpdateDeltaCV(ctx context.Context, docID string, cv *Version, collectionID uint32, toDelta RevisionDelta) { |
| 197 | value := rc.getValueByCV(ctx, docID, cv, collectionID, false) |
| 198 | if value != nil { |
| 199 | outGoingBytes := value.updateDelta(toDelta) |
| 200 | if outGoingBytes != 0 { |
| 201 | rc.currMemoryUsage.Add(outGoingBytes) |
| 202 | rc.cacheMemoryBytesStat.Add(outGoingBytes) |
| 203 | } |
| 204 | // check for memory based eviction |
| 205 | rc.revCacheMemoryBasedEviction(ctx) |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | func (rc *LRURevisionCache) getFromCacheByRev(ctx context.Context, docID, revID string, collectionID uint32, loadOnCacheMiss, includeDelta bool) (DocumentRevision, error) { |
| 210 | value := rc.getValue(ctx, docID, revID, collectionID, loadOnCacheMiss) |
nothing calls this directly
no test coverage detected