MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / RemoveWithCV

Method RemoveWithCV

db/revision_cache_lru.go:513–515  ·  view source on GitHub ↗

RemoveWithCV removes a value from rev cache by CV reference if present

(ctx context.Context, docID string, cv *Version, collectionID uint32)

Source from the content-addressed store, hash-verified

511
512// RemoveWithCV removes a value from rev cache by CV reference if present
513func (rc *LRURevisionCache) RemoveWithCV(ctx context.Context, docID string, cv *Version, collectionID uint32) {
514 rc.removeFromCacheByCV(ctx, docID, cv, collectionID)
515}
516
517func (rc *LRURevisionCache) RemoveCVOnly(ctx context.Context, docID string, cv *Version, collectionID uint32) {
518 rc.removeFromCVLookup(ctx, docID, cv, collectionID)

Callers 2

TestRevCacheCapacityStatFunction · 0.95
TestRevCacheOperationsCVFunction · 0.95

Calls 1

removeFromCacheByCVMethod · 0.95

Tested by 2

TestRevCacheCapacityStatFunction · 0.76
TestRevCacheOperationsCVFunction · 0.76