code: func (cache *Cache) Flush(output Writer, backend Reader) error {
  	err := cache.Sync(output)
  	if err != nil {
  		return err
  	}
  	cache.Reset(backend)
  	return nil
  }
docs: // Syncs the Cache and Resets it to use Writer as the backend Reader