mirror of
https://github.com/kopia/kopia.git
synced 2025-12-24 07:07:52 -05:00
* feat(repository): added precaching of data blobs * feat(repository): added utilities for converting ID slices to strings * feat(repository): added object.PrefetchBackingContents * feat(repository): implemented Repository.PrefetchObjects * feat(cli): added 'cache prefetch' subcommand * feat(repository): prefetch in parallel * added tests
20 lines
464 B
Go
20 lines
464 B
Go
package cli
|
|
|
|
type commandCache struct {
|
|
clear commandCacheClear
|
|
info commandCacheInfo
|
|
prefetch commandCachePrefetch
|
|
set commandCacheSetParams
|
|
sync commandCacheSync
|
|
}
|
|
|
|
func (c *commandCache) setup(svc appServices, parent commandParent) {
|
|
cmd := parent.Command("cache", "Commands to manipulate local cache").Hidden()
|
|
|
|
c.clear.setup(svc, cmd)
|
|
c.info.setup(svc, cmd)
|
|
c.prefetch.setup(svc, cmd)
|
|
c.set.setup(svc, cmd)
|
|
c.sync.setup(svc, cmd)
|
|
}
|