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

Method GetWithCV

db/revision_cache_lru.go:60–62  ·  view source on GitHub ↗
(ctx context.Context, docID string, cv *Version, collectionID uint32, includeDelta bool, loadBackup bool)

Source from the content-addressed store, hash-verified

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)
62}
63
64func (sc *ShardedLRURevisionCache) Peek(ctx context.Context, docID, revID string, collectionID uint32) (docRev DocumentRevision, found bool) {
65 return sc.getShard(docID).Peek(ctx, docID, revID, collectionID)

Callers

nothing calls this directly

Calls 2

getShardMethod · 0.95
GetWithCVMethod · 0.65

Tested by

no test coverage detected