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

Method GetWithRev

db/revision_cache_interface.go:34–34  ·  view source on GitHub ↗

GetWithRev returns the given revision, and stores if not already cached. When includeDelta=true, the returned DocumentRevision will include delta - requires additional locking during retrieval.

(ctx context.Context, docID, revID string, collectionID uint32, includeDelta bool)

Source from the content-addressed store, hash-verified

32 // GetWithRev returns the given revision, and stores if not already cached.
33 // When includeDelta=true, the returned DocumentRevision will include delta - requires additional locking during retrieval.
34 GetWithRev(ctx context.Context, docID, revID string, collectionID uint32, includeDelta bool) (DocumentRevision, error)
35
36 // GetWithCV returns the given revision by CV, and stores if not already cached.
37 // When includeDelta=true, the returned DocumentRevision will include delta - requires additional locking during retrieval.

Implementers 4

collectionRevisionCachedb/revision_cache_interface.go
BypassRevisionCachedb/revision_cache_bypass.go
ShardedLRURevisionCachedb/revision_cache_lru.go
LRURevisionCachedb/revision_cache_lru.go

Calls

no outgoing calls