A simple cache for Objects in Android.

Simply put, this library creates both a long-lived, on-disk (using the outstanding DiskLruCache library) of JSON representations of your Objects (using the superb GSON library) and an in-memory, runtime cache of your Objects. You can optionally specify a time when those cache entries expire, and the goodness of cache-rush-mitigation is baked right into the crust.


Install/import with Gradle

Instructions for Gradle

Add the repository to your build.gradle file;

repositories {
    maven {
        url 'https://raw.github.com/iainconnor/ObjectCache/master/maven/'

And add the dependency;
dependencies {
    compile 'com.iainconnor:objectcache:0.0.18-SNAPSHOT'
Facebook Twitter Google Reddit LinkedIn

You may also like...

Leave a Reply

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