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

Method Peek

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

Peek returns the given revision if present in the cache

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

Source from the content-addressed store, hash-verified

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)
46
47 // Put will store the given docRev in the cache
48 Put(ctx context.Context, docRev DocumentRevision, collectionID uint32)

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