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

Method Put

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

Source from the content-addressed store, hash-verified

78}
79
80func (sc *ShardedLRURevisionCache) Put(ctx context.Context, docRev DocumentRevision, collectionID uint32) {
81 sc.getShard(docRev.DocID).Put(ctx, docRev, collectionID)
82}
83
84func (sc *ShardedLRURevisionCache) Upsert(ctx context.Context, docRev DocumentRevision, collectionID uint32) {
85 sc.getShard(docRev.DocID).Upsert(ctx, docRev, collectionID)

Callers

nothing calls this directly

Calls 2

getShardMethod · 0.95
PutMethod · 0.65

Tested by

no test coverage detected