(filePath string)
| 58 | } |
| 59 | |
| 60 | func (c *memoryUploadCache) GetLength(filePath string) (int64, error) { |
| 61 | item := c.cache.Get(filePath) |
| 62 | if item == nil { |
| 63 | return 0, fmt.Errorf("no active upload found for the given path") |
| 64 | } |
| 65 | return item.Value(), nil |
| 66 | } |
| 67 | |
| 68 | func (c *memoryUploadCache) Touch(filePath string) { |
| 69 | c.cache.Touch(filePath) |