(filePath string)
| 73 | } |
| 74 | |
| 75 | func (c *redisUploadCache) Touch(filePath string) { |
| 76 | err := c.client.Expire(context.Background(), c.filePathKey(filePath), uploadCacheTTL).Err() |
| 77 | if err != nil { |
| 78 | log.Printf("failed to touch upload in redis cache: %v", err) |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | func (c *redisUploadCache) Close() { |
| 83 | c.client.Close() |