WithCacheExpiryDuration sets the duration after which the cache is considered expired. By default, the cache is considered expired after 24 hours.
(duration time.Duration)
| 157 | // WithCacheExpiryDuration sets the duration after which the cache is considered |
| 158 | // expired. By default, the cache is considered expired after 24 hours. |
| 159 | func WithCacheExpiryDuration(duration time.Duration) ReaderOption { |
| 160 | return &cacheExpiryDurationOption{duration: duration} |
| 161 | } |
| 162 | |
| 163 | type cacheExpiryDurationOption struct { |
| 164 | duration time.Duration |
no outgoing calls
no test coverage detected
searching dependent graphs…