You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// WithExpiration is an option to set expiration time for any items.// If the expiration is zero or negative value, it treats as w/o expiration.funcWithExpiration(exp time.Duration) ItemOption {
However, setting 0 or -1 as the expiration causes the item to expire immediately, at odds with the documentation