mirror of
https://github.com/kopia/kopia.git
synced 2026-03-24 09:04:04 -04:00
refactoring: renamed repo/block to repo/content
Also introduced strongly typed content.ID and manifest.ID (instead of string) This aligns identifiers across all layers of repository: blob.ID content.ID object.ID manifest.ID
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"context"
|
||||
|
||||
"github.com/kopia/kopia/repo"
|
||||
"github.com/kopia/kopia/repo/block"
|
||||
"github.com/kopia/kopia/repo/content"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -16,7 +16,7 @@
|
||||
)
|
||||
|
||||
func runCacheSetCommand(ctx context.Context, rep *repo.Repository) error {
|
||||
opts := block.CachingOptions{
|
||||
opts := content.CachingOptions{
|
||||
CacheDirectory: *cacheSetDirectory,
|
||||
MaxCacheSizeBytes: *cacheSetMaxCacheSizeMB << 20,
|
||||
MaxListCacheDurationSec: int(cacheSetMaxListCacheDuration.Seconds()),
|
||||
|
||||
Reference in New Issue
Block a user