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

Method GetActive

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

GetActive returns the current revision for the given doc ID, and stores if not already cached.

(ctx context.Context, docID string, collectionID uint32)

Source from the content-addressed store, hash-verified

40
41 // GetActive returns the current revision for the given doc ID, and stores if not already cached.
42 GetActive(ctx context.Context, docID string, collectionID uint32) (docRev DocumentRevision, err error)
43
44 // Peek returns the given revision if present in the cache
45 Peek(ctx context.Context, docID, revID string, collectionID uint32) (docRev DocumentRevision, found bool)

Callers 10

TestUnprocessableDeltasFunction · 0.65
TestRevisionCacheRemoveFunction · 0.65
TestGetActiveFunction · 0.65
GetActiveMethod · 0.65
UserHasDocAccessFunction · 0.65
GetActiveMethod · 0.65
getRevMethod · 0.65
GetCVMethod · 0.65

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