Files
mgdigital b560874463 Cache tweaks (#99)
* Increase TTL and cache warmer intervals

* Don't delete cache entries prior to no-cache/warm queries
2024-01-07 12:03:44 +00:00

20 lines
293 B
Go

package cache
import "time"
type Config struct {
CacheEnabled bool
EaserEnabled bool
Ttl time.Duration
MaxKeys uint
}
func NewDefaultConfig() Config {
return Config{
CacheEnabled: true,
EaserEnabled: true,
Ttl: time.Minute * 60,
MaxKeys: 1000,
}
}