muesli / cache2go

Concurrency-safe Go caching library with expiration capabilities and access counters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

addInternal() call expirationCheck() is not a good idea

brightyuan opened this issue · comments

when create a cachetable to init expirationCheck() function , maybe better than call it in addInternal function

yes,I know that you question was right,Last night I was trying to run the projects,When I tested expirationCheck() function, But I found that it has bugs,When accessedOn is almost greater now time(time := time.Now()),So that expirationCheck() function can't callback these cache which was expired.