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

Method Upsert

db/revision_cache_lru.go:84–86  ·  view source on GitHub ↗
(ctx context.Context, docRev DocumentRevision, collectionID uint32)

Source from the content-addressed store, hash-verified

82}
83
84func (sc *ShardedLRURevisionCache) Upsert(ctx context.Context, docRev DocumentRevision, collectionID uint32) {
85 sc.getShard(docRev.DocID).Upsert(ctx, docRev, collectionID)
86}
87
88func (sc *ShardedLRURevisionCache) RemoveWithRev(ctx context.Context, docID, revID string, collectionID uint32) {
89 sc.getShard(docID).RemoveWithRev(ctx, docID, revID, collectionID)

Callers

nothing calls this directly

Calls 2

getShardMethod · 0.95
UpsertMethod · 0.65

Tested by

no test coverage detected