(filePath string)
| 36 | } |
| 37 | |
| 38 | func (c *redisUploadCache) filePathKey(filePath string) string { |
| 39 | return "filebrowser:upload:" + filePath |
| 40 | } |
| 41 | |
| 42 | func (c *redisUploadCache) Register(filePath string, fileSize int64) { |
| 43 | err := c.client.Set(context.Background(), c.filePathKey(filePath), fileSize, uploadCacheTTL).Err() |