AddChunk adds a new chunk of a cached object
(fp string, data []byte, offset int64)
| 57 | |
| 58 | // AddChunk adds a new chunk of a cached object |
| 59 | func (m *Memory) AddChunk(fp string, data []byte, offset int64) error { |
| 60 | return m.AddChunkAhead(fp, data, offset, time.Second) |
| 61 | } |
| 62 | |
| 63 | // AddChunkAhead adds a new chunk of a cached object |
| 64 | func (m *Memory) AddChunkAhead(fp string, data []byte, offset int64, t time.Duration) error { |
no test coverage detected