2
0

Notes on cache serialization

This commit is contained in:
Patrick Mylund Nielsen
2012-01-29 03:27:01 +01:00
parent 98c2ce9eb4
commit 0ff0a883b5
2 changed files with 21 additions and 1 deletions
+2 -1
View File
@@ -326,7 +326,8 @@ func (c *cache) Load(r io.Reader) error {
return err
}
// Loads and adds cache items from the given filename
// Loads and adds cache items from the given filename, excluding any items that
// already exist in the current cache
func (c *cache) LoadFile(fname string) error {
fp, err := os.Open(fname)
if err != nil {