RemoveAll deletes all entities from the cache and the disk.
()
| 84 | |
| 85 | // RemoveAll deletes all entities from the cache and the disk. |
| 86 | func (c *RepoCache) RemoveAll() error { |
| 87 | var errWait multierr.ErrWaitGroup |
| 88 | for _, mgmt := range c.subcaches { |
| 89 | errWait.Go(mgmt.RemoveAll) |
| 90 | } |
| 91 | return errWait.Wait() |
| 92 | } |
| 93 | |
| 94 | // MergeAll will merge all the available remote bug and identities |
| 95 | func (c *RepoCache) MergeAll(remote string) <-chan entity.MergeResult { |