|
|
@ -141,7 +141,9 @@ func (c *Cache) Flush()
|
|
|
|
Deletes all items from the cache.
|
|
|
|
Deletes all items from the cache.
|
|
|
|
|
|
|
|
|
|
|
|
func (c *cache) Save(w io.Writer) error
|
|
|
|
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. Returns an error if
|
|
|
|
|
|
|
|
the serialization fails, e.g. because there are unserializable objects like
|
|
|
|
|
|
|
|
channels in the cache.
|
|
|
|
|
|
|
|
|
|
|
|
func (c *cache) SaveFile(fname string) error
|
|
|
|
func (c *cache) SaveFile(fname string) error
|
|
|
|
Saves the cache's items to the given filename, creating the file if it
|
|
|
|
Saves the cache's items to the given filename, creating the file if it
|
|
|
|