2023-03-20 11:40:46 +01:00
|
|
|
package thumb
|
|
|
|
|
|
|
|
import "strconv"
|
|
|
|
|
|
|
|
// MaxAge represents a cache TTL in seconds.
|
|
|
|
type MaxAge int
|
|
|
|
|
|
|
|
// String returns the cache TTL in seconds as string.
|
|
|
|
func (a MaxAge) String() string {
|
|
|
|
return strconv.Itoa(int(a))
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
2023-03-20 20:37:07 +01:00
|
|
|
CacheMaxAge MaxAge = 2592000
|
2023-03-20 11:40:46 +01:00
|
|
|
CachePublic = false
|
|
|
|
)
|