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

Method GetWithCV

db/revision_cache_lru.go:167–169  ·  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

165}
166
167func (rc *LRURevisionCache) GetWithCV(ctx context.Context, docID string, cv *Version, collectionID uint32, includeDelta bool, loadBackup bool) (DocumentRevision, error) {
168 return rc.getFromCacheByCV(ctx, docID, cv, collectionID, true, includeDelta, loadBackup)
169}
170
171// Looks up a revision from the cache only. Will not fall back to loader function if not
172// present in the cache.

Calls 1

getFromCacheByCVMethod · 0.95