MCPcopy
hub / github.com/go-task/task / WithCacheExpiryDuration

Function WithCacheExpiryDuration

taskfile/reader.go:159–161  ·  view source on GitHub ↗

WithCacheExpiryDuration sets the duration after which the cache is considered expired. By default, the cache is considered expired after 24 hours.

(duration time.Duration)

Source from the content-addressed store, hash-verified

157// WithCacheExpiryDuration sets the duration after which the cache is considered
158// expired. By default, the cache is considered expired after 24 hours.
159func WithCacheExpiryDuration(duration time.Duration) ReaderOption {
160 return &cacheExpiryDurationOption{duration: duration}
161}
162
163type cacheExpiryDurationOption struct {
164 duration time.Duration

Callers 1

readTaskfileMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…