Files
kopia/repo/content/content_cache.go
Jarek Kowalski 4e705726fe Implemented caching for server connections (#845)
* cache: refactored reusable portion of cache into separate package

* repo: plumbed through caching for remote repository clients

* repo: plumb through cache in the unit tests

* cache: ensure we only allow absolute cache paths, fixed cache path resolution for remote repositories
2021-03-01 06:15:39 -08:00

15 lines
265 B
Go

package content
import (
"context"
"github.com/kopia/kopia/repo/blob"
)
type cacheKey string
type contentCache interface {
close(ctx context.Context)
getContent(ctx context.Context, cacheKey cacheKey, blobID blob.ID, offset, length int64) ([]byte, error)
}