func (c *cache) LoadFile(fname string) error {
	fp, err := os.Open(fname)
	if err != nil {
		return err
	}
	err = c.Load(fp)
	if err != nil {
		fp.Close()
		return err
	}
	return fp.Close()
}
func (c *cache) LoadFile(fname string) error {
	fp, err := os.Open(fname)
	if err != nil {
		return err
	}
	err = c.Load(fp)
	if err != nil {
		fp.Close()
		return err
	}
	return fp.Close()
}
func ( c * cache ) LoadFile ( fname string ) error { fp , err := os . Open ( fname ) if err != nil { return err } err = c . Load ( fp ) if err != nil { fp . Close ( ) return err } return fp . Close ( ) }
// Load and add cache items from the given filename, excluding any items with
// keys that already exist in the current cache.
//
// NOTE: This method is deprecated in favor of c.Items() and NewFrom() (see the
// documentation for NewFrom().)
Load and add cache items from the given filename excluding any items with keys that already exist in the current cache . NOTE : This method is deprecated in favor of c . Items () and NewFrom () ( see the documentation for NewFrom () . )