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

Method RemoveFromChangeCache

db/database_collection.go:292–294  ·  view source on GitHub ↗

RemoveFromChangeCache removes select documents from all channel caches and returns the number of documents removed.

(ctx context.Context, docIDs []string, startTime time.Time)

Source from the content-addressed store, hash-verified

290
291// RemoveFromChangeCache removes select documents from all channel caches and returns the number of documents removed.
292func (c *DatabaseCollection) RemoveFromChangeCache(ctx context.Context, docIDs []string, startTime time.Time) int {
293 return c.dbCtx.changeCache.Remove(ctx, c.GetCollectionID(), docIDs, startTime)
294}
295
296// revsLimit is the max depth a document's revision tree can grow to. This is controlled at a database level.
297func (c *DatabaseCollection) revsLimit() uint32 {

Callers 2

handlePurgeMethod · 0.80
CompactMethod · 0.80

Calls 2

GetCollectionIDMethod · 0.95
RemoveMethod · 0.65

Tested by

no test coverage detected