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

Function NewBypassRevisionCache

db/revision_cache_bypass.go:27–32  ·  view source on GitHub ↗
(backingStores map[uint32]RevisionCacheBackingStore, bypassStat *base.SgwIntStat)

Source from the content-addressed store, hash-verified

25}
26
27func NewBypassRevisionCache(backingStores map[uint32]RevisionCacheBackingStore, bypassStat *base.SgwIntStat) *BypassRevisionCache {
28 return &BypassRevisionCache{
29 backingStores: backingStores,
30 bypassStat: bypassStat,
31 }
32}
33
34// GetWithRev fetches the revision for the given docID and revID immediately from the bucket.
35func (rc *BypassRevisionCache) GetWithRev(ctx context.Context, docID, revID string, collectionID uint32, includeDelta bool) (docRev DocumentRevision, err error) {

Callers 2

TestBypassRevisionCacheFunction · 0.85
NewRevisionCacheFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestBypassRevisionCacheFunction · 0.68