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

Method FlushChannelCache

db/database_collection.go:225–228  ·  view source on GitHub ↗

FlushChannelCache flush support. Currently test-only - added for unit test access from rest package

(ctx context.Context)

Source from the content-addressed store, hash-verified

223
224// FlushChannelCache flush support. Currently test-only - added for unit test access from rest package
225func (c *DatabaseCollection) FlushChannelCache(ctx context.Context) error {
226 base.InfofCtx(ctx, base.KeyCache, "Flushing channel cache")
227 return c.dbCtx.changeCache.Clear(ctx)
228}
229
230// ForceAPIForbiddenErrors returns true if we return 403 vs empty docs. This is controlled at the database level.
231func (c *DatabaseCollection) ForceAPIForbiddenErrors() bool {

Calls 2

InfofCtxFunction · 0.92
ClearMethod · 0.65