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

Method Upsert

db/revision_cache_interface.go:51–51  ·  view source on GitHub ↗

Upsert will remove existing value and re-create new one

(ctx context.Context, docRev DocumentRevision, collectionID uint32)

Source from the content-addressed store, hash-verified

49
50 // Upsert will remove existing value and re-create new one
51 Upsert(ctx context.Context, docRev DocumentRevision, collectionID uint32)
52
53 // RemoveWithRev evicts a revision from the cache using its revID.
54 RemoveWithRev(ctx context.Context, docID, revID string, collectionID uint32)

Callers 10

SetMethod · 0.65
SetRawMethod · 0.65
TestUnprocessableDeltasFunction · 0.65
TestIsCfgChangedFunction · 0.65
UpsertMethod · 0.65
UpsertReplicationMethod · 0.65
UpsertMethod · 0.65
updateAndReturnDocMethod · 0.65

Implementers 4

collectionRevisionCachedb/revision_cache_interface.go
BypassRevisionCachedb/revision_cache_bypass.go
ShardedLRURevisionCachedb/revision_cache_lru.go
LRURevisionCachedb/revision_cache_lru.go

Calls

no outgoing calls

Tested by 4

TestUnprocessableDeltasFunction · 0.52
TestIsCfgChangedFunction · 0.52