MCPcopy Create free account
hub / github.com/go-task/task / WithCacheExpiryDuration

Function WithCacheExpiryDuration

executor.go:285–287  ·  view source on GitHub ↗

WithCacheExpiryDuration sets the duration after which the cache is considered expired. By default, the cache is 0 (disabled).

(duration time.Duration)

Source from the content-addressed store, hash-verified

283// WithCacheExpiryDuration sets the duration after which the cache is considered
284// expired. By default, the cache is 0 (disabled).
285func WithCacheExpiryDuration(duration time.Duration) ExecutorOption {
286 return &cacheExpiryDurationOption{duration: duration}
287}
288
289type cacheExpiryDurationOption struct {
290 duration time.Duration

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…