// WithCacheDuration sets the duration for how long the aggregated health check result will be
// cached. By default, the cache TTL (i.e, the duration for how long responses will be cached) is set to 1 second.
// Caching will prevent that each incoming HTTP request triggers a new health check. A duration of 0 will
// effectively disable the cache and has the same effect as WithDisabledCache.
WithCacheDuration sets the duration for how long the aggregated health check result will be
cached. By default, the cache TTL  is set to 1 second.
Caching will prevent that each incoming HTTP request triggers a new health check. A duration of 0 will
effectively disable the cache and has the same effect as WithDisabledCache.
// WithCacheDuration sets the duration for how long the aggregated health check result will be // cached . By default the cache TTL ( i . e the duration for how long responses will be cached ) is set to 1 second . // Caching will prevent that each incoming HTTP request triggers a new health check . A duration of 0 will // effectively disable the cache and has the same effect as WithDisabledCache .
func WithCacheDuration(duration time.Duration) CheckerOption {
	return func(cfg *checkerConfig) {
		cfg.cacheTTL = duration
	}
}
func WithCacheDuration ( duration time . Duration ) CheckerOption { return func ( cfg * checkerConfig ) { cfg . cacheTTL = duration } }
WithCacheDuration sets the duration for how long the aggregated health check result will be
cached.
WithCacheDuration sets the duration for how long the aggregated health check result will be cached .