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

mCache.put("test_key1", "test value");这个方法缓存多久? #18

Open
Skqing opened this issue Jul 30, 2015 · 3 comments
Open

mCache.put("test_key1", "test value");这个方法缓存多久? #18

Skqing opened this issue Jul 30, 2015 · 3 comments

Comments

@Skqing
Copy link

Skqing commented Jul 30, 2015

mCache.put("test_key1", "test value");这个方法缓存多久?

@jamky
Copy link

jamky commented Sep 16, 2015

不设置过期时间,是不会过时的(位于Acache文件夹里test_key1的缓存文件不会自动清除,除非你手动Remove清除)。

@juefei
Copy link

juefei commented Nov 13, 2015

缓存达到上限时,也会清除最老的文件,test_key1的缓存文件也会被清除吧

@jamky
Copy link

jamky commented Nov 19, 2015

嗯,达到最大缓存文件个数或最大缓存容量,会自动清除最旧的一个文件,释放缓存数量及容量,让新的缓存可以存储进去,如果此时的缓存容量仍然不足,则继续清除最旧的一个文件,如此反复释放,直到新的缓存足够存储进去。

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

3 participants