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

Method GetCachedChanges

db/channel_cache.go:292–300  ·  view source on GitHub ↗
(ctx context.Context, channel channels.ID)

Source from the content-addressed store, hash-verified

290}
291
292func (c *channelCacheImpl) GetCachedChanges(ctx context.Context, channel channels.ID) ([]*LogEntry, error) {
293 options := ChangesOptions{Since: SequenceID{Seq: 0}}
294 cache, err := c.getChannelCache(ctx, channel)
295 if err != nil {
296 return nil, err
297 }
298 _, changes := cache.GetCachedChanges(options)
299 return changes, nil
300}
301
302// CleanAgedItems prunes the caches based on age of items. Error returned to fulfill BackgroundTaskFunc signature.
303func (c *channelCacheImpl) cleanAgedItems(ctx context.Context) error {

Callers

nothing calls this directly

Calls 2

getChannelCacheMethod · 0.95
GetCachedChangesMethod · 0.65

Tested by

no test coverage detected