GetOrCreate gets the cached value if available, otherwise downloads the file.
(name string, offset int64, count int, fetch func() ([]byte, error))
| 15 | |
| 16 | // GetOrCreate gets the cached value if available, otherwise downloads the file. |
| 17 | GetOrCreate(name string, offset int64, count int, fetch func() ([]byte, error)) ([]byte, error) |
| 18 | } |
| 19 | |
| 20 | var ( |
no outgoing calls