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

Method GetCachedChanges

db/channel_cache.go:57–57  ·  view source on GitHub ↗

Returns the set of all cached data for a given channel (intended for diagnostic usage)

(ctx context.Context, ch channels.ID)

Source from the content-addressed store, hash-verified

55
56 // Returns the set of all cached data for a given channel (intended for diagnostic usage)
57 GetCachedChanges(ctx context.Context, ch channels.ID) ([]*LogEntry, error)
58
59 // Clear reinitializes the cache to an empty state
60 Clear()

Callers 6

startChangesFunction · 0.65
GetCachedChangesMethod · 0.65
TestPrependChangesFunction · 0.65
GetChangeLogMethod · 0.65
GetCachedChangesMethod · 0.65
TestAddPendingLogsFunction · 0.65

Implementers 1

channelCacheImpldb/channel_cache.go

Calls

no outgoing calls

Tested by 2

TestPrependChangesFunction · 0.52
TestAddPendingLogsFunction · 0.52