(backingStores map[uint32]RevisionCacheBackingStore, bypassStat *base.SgwIntStat)
| 25 | } |
| 26 | |
| 27 | func 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. |
| 35 | func (rc *BypassRevisionCache) GetWithRev(ctx context.Context, docID, revID string, collectionID uint32, includeDelta bool) (docRev DocumentRevision, err error) { |
no outgoing calls