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

Method GetCachedChanges

db/util_testing.go:115–118  ·  view source on GitHub ↗

GetCachedChanges will grab cached changes form channel cache for caching tool, not to be used outside test code.

(t *testing.T, ctx context.Context, chanID channels.ID)

Source from the content-addressed store, hash-verified

113
114// GetCachedChanges will grab cached changes form channel cache for caching tool, not to be used outside test code.
115func (db *DatabaseContext) GetCachedChanges(t *testing.T, ctx context.Context, chanID channels.ID) ([]*LogEntry, error) {
116 logs, err := db.changeCache.getChannelCache().GetCachedChanges(ctx, chanID)
117 return logs, err
118}
119
120func (db *DatabaseContext) NewDCPCachingCountWaiter(tb testing.TB) *StatWaiter {
121 return db.NewStatWaiter(db.DbStats.Database().DCPCachingCount, tb)

Callers

nothing calls this directly

Calls 2

GetCachedChangesMethod · 0.65
getChannelCacheMethod · 0.45

Tested by

no test coverage detected