Exists checks if the given chunk of the file is already cached.
(name string, offset int64)
| 12 | |
| 13 | // Exists checks if the given chunk of the file is already cached. |
| 14 | Exists(name string, offset int64) bool |
| 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) |
no outgoing calls