| 12345678910 |
- package settings
- type DownloadFileCache struct {
- TTL int `json:"ttl" default:"4320"` // 单位需要根据下面的单位转换,默认是小时的单位,然后是半年的过期时间
- Unit string `json:"unit" default:"hour"` // second, hour, 目前仅仅支持 秒和小时
- }
- func NewDownloadFileCache() *DownloadFileCache {
- return &DownloadFileCache{TTL: 4320, Unit: "hour"}
- }
|