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

Method GetWithRev

db/revision_cache_lru.go:56–58  ·  view source on GitHub ↗
(ctx context.Context, docID, revID string, collectionID uint32, includeDelta bool)

Source from the content-addressed store, hash-verified

54}
55
56func (sc *ShardedLRURevisionCache) GetWithRev(ctx context.Context, docID, revID string, collectionID uint32, includeDelta bool) (docRev DocumentRevision, err error) {
57 return sc.getShard(docID).GetWithRev(ctx, docID, revID, collectionID, includeDelta)
58}
59
60func (sc *ShardedLRURevisionCache) GetWithCV(ctx context.Context, docID string, cv *Version, collectionID uint32, includeDelta bool, loadBackup bool) (docRev DocumentRevision, err error) {
61 return sc.getShard(docID).GetWithCV(ctx, docID, cv, collectionID, includeDelta, loadBackup)

Callers

nothing calls this directly

Calls 2

getShardMethod · 0.95
GetWithRevMethod · 0.65

Tested by

no test coverage detected