Disk LRU Cache


Disk LRU Cache is a Java implementation of a Disk-based LRU cache which specifically targets Android compatibility. It uses a bounded amount of space on a filesystem. Each cache entry has a string key and a fixed number of values. Each key must match the regex [a-z0-9_-]{1,64}. Values are byte sequences, accessible as streams or files. Each value must be between 0 and Integer.MAX_VALUE bytes in length. The cache stores its data in an exclusive directory on the filesystem. This cache limits the number of bytes that it will store on the filesystem. When the number of stored bytes exceeds the limit, the cache will remove entries in the background until the limit is satisfied.


Install/import with Maven

Instructions for Maven

Add the library as a dependency

  <version>(insert latest version)</version>
Facebook Twitter Google Reddit LinkedIn

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *