17 lines
281 B
Go
17 lines
281 B
Go
|
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 (
|
||
|
CacheTTL MaxAge = 2630000
|
||
|
CachePublic = false
|
||
|
)
|