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

Method Put

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

Put will store the given docRev in the cache

(ctx context.Context, docRev DocumentRevision, collectionID uint32)

Source from the content-addressed store, hash-verified

46
47 // Put will store the given docRev in the cache
48 Put(ctx context.Context, docRev DocumentRevision, collectionID uint32)
49
50 // Upsert will remove existing value and re-create new one
51 Upsert(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