【发布时间】:2013-10-28 20:48:00
【问题描述】:
DiskLruImageCache
DiskLruImageCache 是DiskLruCache 的包装器,具有以位图为中心的实现。它从DiskLruCache 添加和检索位图,并处理缓存实例化。磁盘缓存可能会阻塞 I/O。
我在看这篇文章from this blog
为什么他们没有提到磁盘缓存可能会阻塞 I/O?
【问题讨论】:
标签: android caching android-volley
DiskLruImageCache
DiskLruImageCache 是DiskLruCache 的包装器,具有以位图为中心的实现。它从DiskLruCache 添加和检索位图,并处理缓存实例化。磁盘缓存可能会阻塞 I/O。
我在看这篇文章from this blog
为什么他们没有提到磁盘缓存可能会阻塞 I/O?
【问题讨论】:
标签: android caching android-volley
别担心。
他们没有提到它,因为 DiskLruImageCache 和 DiskLruCache 与 Volley 无关。这些是 Jake Wharton 的项目,可在 GitHub 上找到。
您阅读的博客的作者似乎决定将 Volley 的磁盘缓存 (DiskBasedCache) 切换为 Jake 的。
你真的不必像他那样做。 Volley 的磁盘缓存工作正常。
【讨论】: