save only the parts being cached

This commit is contained in:
Radu Ioan Fericean
2016-07-05 18:11:04 +03:00
parent a3f7199d63
commit 257ecc51c1
5 changed files with 61 additions and 213 deletions

View File

@@ -78,7 +78,7 @@ func CacheCommitTransaction() {
transactionMux.Unlock()
}
func CacheSave(path string, keys []string, cfi *utils.CacheFileInfo) error {
func CacheSave(path string, keys map[string][]string, cfi *utils.CacheFileInfo) error {
mux.Lock()
defer mux.Unlock()
return cache.Save(path, keys, cfi)