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

Method getShard

db/revision_cache_lru.go:52–54  ·  view source on GitHub ↗
(docID string)

Source from the content-addressed store, hash-verified

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

Callers 14

GetWithRevMethod · 0.95
GetWithCVMethod · 0.95
PeekMethod · 0.95
UpdateDeltaMethod · 0.95
UpdateDeltaCVMethod · 0.95
GetActiveMethod · 0.95
PutMethod · 0.95
UpsertMethod · 0.95
RemoveWithRevMethod · 0.95
RemoveWithCVMethod · 0.95
RemoveRevOnlyMethod · 0.95
RemoveCVOnlyMethod · 0.95

Calls

no outgoing calls

Tested by 2