Android Objects Cache

后端 未结 7 1725
南旧
南旧 2020-12-14 23:14

Looking for a simple open source non-copyleft caching for Android (SDK 7+) class.

The purpose is primary to store the Bitmaps fetched asynchronously (so

7条回答
  •  无人及你
    2020-12-14 23:53

    The plain LruCache suggested above is an in memory cache. From your question it sounds like you are looking for a disk cache solution.

    Read the Disk Cache of the Caching Bitmaps android training doc.

    Then take a look at the DiskLruCache implementation discussed on the following thread : Using DiskLruCache in android 4.0 does not provide for openCache method

    You can grab the DiskLruCache source on GitHub.

提交回复
热议问题