addInternal() call expirationCheck() is not a good idea
brightyuan opened this issue · comments
bright commented
when create a cachetable to init expirationCheck() function , maybe better than call it in addInternal function
JasonXiong commented
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.