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

关于maxCacheSize #24

Open
nyz110 opened this issue Jan 16, 2018 · 2 comments
Open

关于maxCacheSize #24

nyz110 opened this issue Jan 16, 2018 · 2 comments

Comments

@nyz110
Copy link

nyz110 commented Jan 16, 2018

  1. 这个参数是指所有创建的文件达到maxCacheSize 还是总的下载(fragments)大小达到maxCacheSize

  2. 达到maxCacheSize 之后,会清除之前的缓存,继续缓存最新的下载数据吗

@mayudong1
Copy link
Contributor

是按照文件总大小来计算的,比如一个文件100M,即使只下载了一部分,依然认为已使用的大小为100M计算;
达到max后,会删除最长时间没有访问过的文件的数据,不会删除本文件的数据

@nyz110
Copy link
Author

nyz110 commented Jan 16, 2018

达到max后,文件不删除,只清除文件数据,那这个文件的大小也会变成0吧?

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

2 participants