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 5a1da16 commit ea5768cCopy full SHA for ea5768c
cache.go
@@ -40,7 +40,7 @@ type itemOptions struct {
40
}
41
42
// WithExpiration is an option to set expiration time for any items.
43
-// If the expiration is zero or negative value, it treat as no expiration.
+// If the expiration is zero or negative value, it treats as w/o expiration.
44
func WithExpiration(exp time.Duration) ItemOption {
45
return func(o *itemOptions) {
46
o.expiration = exp
0 commit comments