We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a66a972 commit 70e753cCopy full SHA for 70e753c
pkg/cache/options.go
@@ -41,6 +41,7 @@ func WithTTL(ttl time.Duration) Option {
41
return func(o *options) {
42
if ttl <= 0 {
43
o.validUntil = time.Time{}
44
+ return
45
}
46
47
o.validUntil = time.Now().Add(ttl)
0 commit comments