fix: touch Redis upload cache key on GetLength to prevent TTL expiry (#5850)
This commit is contained in:
@@ -67,6 +67,8 @@ func (c *redisUploadCache) GetLength(filePath string) (int64, error) {
|
||||
return 0, fmt.Errorf("invalid upload length in cache: %w", err)
|
||||
}
|
||||
|
||||
c.Touch(filePath)
|
||||
|
||||
return size, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user