var ErrDataNotFound … type containerCache … func (c *containerCache) AddStats(stats *info.ContainerStats) error { … } func (c *containerCache) RecentStats(start, end time.Time, maxStats int) ([]*info.ContainerStats, error) { … } func newContainerStore(ref info.ContainerReference, maxAge time.Duration) *containerCache { … } type InMemoryCache … func (c *InMemoryCache) AddStats(cInfo *info.ContainerInfo, stats *info.ContainerStats) error { … } func (c *InMemoryCache) RecentStats(name string, start, end time.Time, maxStats int) ([]*info.ContainerStats, error) { … } func (c *InMemoryCache) Close() error { … } func (c *InMemoryCache) RemoveContainer(containerName string) error { … } func New( maxAge time.Duration, backend []storage.StorageDriver, ) *InMemoryCache { … }