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

Method Peek

db/revision_cache_lru.go:64–66  ·  view source on GitHub ↗
(ctx context.Context, docID, revID string, collectionID uint32)

Source from the content-addressed store, hash-verified

62}
63
64func (sc *ShardedLRURevisionCache) Peek(ctx context.Context, docID, revID string, collectionID uint32) (docRev DocumentRevision, found bool) {
65 return sc.getShard(docID).Peek(ctx, docID, revID, collectionID)
66}
67
68func (sc *ShardedLRURevisionCache) UpdateDelta(ctx context.Context, docID, revID string, collectionID uint32, toDelta RevisionDelta) {
69 sc.getShard(docID).UpdateDelta(ctx, docID, revID, collectionID, toDelta)

Callers

nothing calls this directly

Calls 2

getShardMethod · 0.95
PeekMethod · 0.65

Tested by

no test coverage detected