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
i just read the code related to expiring process and found that. i just change oldHdr.expireAt < now to oldHdr.expireAt > now and then run the go test ./..., the result is passed, maybe there is no test to cover the line.
https://github.com/coocood/freecache/blob/master/segment.go#L181
expired := oldHdr.expireAt != 0 && oldHdr.expireAt < now
It is more logical for :
expired := oldHdr.expireAt != 0 && oldHdr.expireAt > now
The text was updated successfully, but these errors were encountered: