2
0

Touch-ups

This commit is contained in:
Patrick Mylund Nielsen
2012-01-29 03:34:14 +01:00
parent 0ff0a883b5
commit 8598a0c29a
2 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -141,16 +141,16 @@ func (c *Cache) Flush()
Deletes all items from the cache.
func (c *cache) Save(w io.Writer) error
Writes the cache's items using Gob to an io.Writer
Writes the cache's items (using Gob) to an io.Writer.
func (c *cache) SaveFile(fname string) error
Saves the cache's items to the given filename, creating the file if it
doesn't exist, and overwriting it if it does.
func (c *cache) Load(r io.Reader) error
Adds gob-serialized cache items from an io.Reader, excluding any items that
already exist in the current cache
Adds (Gob-serialized) cache items from an io.Reader, excluding any items that
already exist in the current cache.
func (c *cache) LoadFile(fname string) error
Loads and adds cache items from the given filename, excluding any items that
already exist in the current cache
already exist in the current cache,