RemoveRevOnly removes a rev from revision cache lookup map, if present.
(ctx context.Context, docID, revID string, collectionID uint32)
| 520 | |
| 521 | // RemoveRevOnly removes a rev from revision cache lookup map, if present. |
| 522 | func (rc *LRURevisionCache) RemoveRevOnly(ctx context.Context, docID, revID string, collectionID uint32) { |
| 523 | // This will only remove the entry from the rev lookup map, not the lru list |
| 524 | rc.removeFromRevLookup(ctx, docID, revID, collectionID) |
| 525 | } |
| 526 | |
| 527 | // removeFromCacheByCV removes an entry from rev cache by CV |
| 528 | func (rc *LRURevisionCache) removeFromCacheByCV(ctx context.Context, docID string, cv *Version, collectionID uint32) { |