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

Volley.newNoCacheRequestQueue()和Volley.newRequestQueue()有什么区别? #6

Open
xuejingfei opened this issue Dec 7, 2015 · 3 comments

Comments

@xuejingfei
Copy link

Volley.newNoCacheRequestQueue()是带有LruCache缓存不带有DisCache缓存。
Volley.newRequestQueue()是两个都带有是吗?

@bacy
Copy link
Owner

bacy commented Dec 7, 2015

NoCache指的是NoDiskCache。memCache只在ImageLoader中使用。
setShouldCache是Request方法,用来设置某个Request不用DiskCache。newNoCacheRequestQueue是全局配置,表示这个RequestQueue下的所有Request都不用DiskCache

@xuejingfei
Copy link
Author

为啥不设置这个属性setShouldCache(false).

@bacy
Copy link
Owner

bacy commented Mar 11, 2016

一个针对所有加入Queue的Request,一个针对单个Request

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