aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/cache.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--internal/feed/cache.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/feed/cache.go b/internal/feed/cache.go
index 5674de4..45cefd0 100644
--- a/internal/feed/cache.go
+++ b/internal/feed/cache.go
@@ -20,6 +20,8 @@ const (
type Cache interface {
findItem(*Feed) CachedFeed
Version() Version
+ Info() string
+ SpecificInfo(interface{}) string
transformToCurrent() (Cache, error)
}
@@ -75,7 +77,7 @@ func newCache() (Cache, error) {
return cacheForVersion(currentVersion)
}
-func loadCache(fileName string) (Cache, error) {
+func LoadCache(fileName string) (Cache, error) {
f, err := os.Open(fileName)
if err != nil {
if errors.Is(err, os.ErrNotExist) {