【问题标题】:Why DiskLruImageCache blocks I/O为什么 DiskLruImageCache 会阻塞 I/O
【发布时间】:2013-10-28 20:48:00
【问题描述】:

DiskLruImageCache

DiskLruImageCacheDiskLruCache 的包装器,具有以位图为中心的实现。它从DiskLruCache 添加和检索位图,并处理缓存实例化。磁盘缓存可能会阻塞 I/O。

我在看这篇文章from this blog

为什么他们没有提到磁盘缓存可能会阻塞 I/O?

【问题讨论】:

    标签: android caching android-volley


    【解决方案1】:

    别担心。

    他们没有提到它,因为 DiskLruImageCacheDiskLruCache 与 Volley 无关。这些是 Jake Wharton 的项目,可在 GitHub 上找到。

    您阅读的博客的作者似乎决定将 Volley 的磁盘缓存 (DiskBasedCache) 切换为 Jake 的。

    你真的不必像他那样做。 Volley 的磁盘缓存工作正常。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-24
      • 2021-05-24
      • 2012-02-21
      • 2018-04-06
      • 1970-01-01
      相关资源
      最近更新 更多