(docID string)
| 50 | } |
| 51 | |
| 52 | func (sc *ShardedLRURevisionCache) getShard(docID string) *LRURevisionCache { |
| 53 | return sc.caches[sgbucket.VBHash(docID, sc.numShards)] |
| 54 | } |
| 55 | |
| 56 | func (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) |
no outgoing calls