(ctx context.Context, channel channels.ID)
| 290 | } |
| 291 | |
| 292 | func (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. |
| 303 | func (c *channelCacheImpl) cleanAgedItems(ctx context.Context) error { |
nothing calls this directly
no test coverage detected