Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于YYDiskCache的ageLimit问题 #131

Open
mushao1990 opened this issue Oct 22, 2018 · 0 comments
Open

关于YYDiskCache的ageLimit问题 #131

mushao1990 opened this issue Oct 22, 2018 · 0 comments

Comments

@mushao1990
Copy link

个人看源码觉得这个属性值的使用代码有误。
表里last_access_time字段存的是操作数据时候的时间戳。但是removeItemsEarlierThanTime方法里,传的参数是当前时间戳与agelimit的差值。
因此,查询sql语句里 select filename from manifest where last_access_time < ?1 and filename is not null; 查到的过期文件就有问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant