Disk LRU (least recently used) cache with persisted journal. This cache has specific capacity and location. Rarely requested files are evicted by actively used. Lightweight and extremely easy to use.
The HttpResponseCache library provides transparent and automatic caching of HTTP and HTTPS requests that use the java.net.HttpUrlConnection classes.
For information on how to use HttpUrlConnection, refer to the Android documentation - don't worry, the information also applies to non-Android Java.
This is a minimal library without dependencies that offers a simple cache file provider.
A memcached-like Java cache, focused on portability, great for Android.
This library uses this idea to implement in-memory storage. There are two simple principles:
One of the fastest caching libraries for Java. Lots of features for advanced integrations of external systems: (Variable entry) expiry, exception handling with configurable resilience, loaders/writers, events, statistics. Configuration can also be done via XML (optional feature).
✔️ Simplify Caching in Android
Caching is just a simple key-value pair data saving procedure. StoreX follows the same approach. StoreX uses SharedPreference as storage for caching data. Since we really can't just save the original data because of security issues. StoreX uses AES encryption & decryption behind the scene when you are caching data or fetching data from the cache. Also, you can observer cached data in real-time.
A simple generic LRU memory/disk cache for Android written in Kotlin.
A feasible caching library for Android.
Features
How does it work?
Caching is just a simple key-value pair data saving procedure. CacheX follows the same approach. CacheX uses SharedPreference as storage for caching data. Since we really can't just save the original data because of security issues. CacheX uses AES encryption & decryption behind the scene when you are caching data or fetching data from the cache. Also, you can observer cached data in real-time.
An easy library to manage stored data in shared preferences.
Reservoir is a simple library for Android that allows you to easily serialize and cache your objects to disk using key/value pairs.
Inspired by Retrofit api, RxCache is a reactive caching library for Android and Java which turns your caching needs into an interface.
A reactive cache for Android and Java which honors the Observable
chain.
Java implementation of a Disk-based LRU cache which specifically targets Android compatibility.
Cold storage is a lightweight caching library for android.
You can annotate a method to cache it's output or cache the outputs of all methods in a class by annotating the class.
You can configure the cache by specifying expiration time and maximum size .
For the latest releases and features check out the repository.
Cold storage is a lightweight caching library that will make all the caching complexities abstract and allow you to solely focus on the application logic.
The cold storage takes care of removing stale data, updating cache and persisting them in shared preferences if required.
Cold storage also supports caching using just annotations.
A simple library for saving data in the cache and reading them.
Now it's very easy to save objects and lists! Caching + Gson = Easy Save. Save objects and lists like preferences, with the power of caching!
Android dual-cache library provides a cache with 2 layers: one cache in RAM and another on local storage.
A tiny, thread safe memory cache implementation which uses a LRU policy.
Policy-based cache container for Java, Android.
Repoli is supported some platforms. You can use below modules:
core
rxjava1
realm
An Android library to cache any serializable objects to disk, using a LRU cache implementation, with the possibility to specify an expiry time for each entry and a maximum size that can be allocated.
Library allows to cache Observables during orientation change. It's useful during HTTP request, which must be performed only once. After onComplete, Observables are automatically removed from cache.
ObservableCacheService is additional layer over ObservableCache, which generate classes with access to Observables in cache.
Exception handling is always a cumbersome but unavoidable part of dealing with disk cache on Android. Complex error handling not only makes your code hard to understand, but also prone to developer errors. IgDiskCache is a fault-tolerant Android disk cache library that helps simplify the error handling logic and makes your file caching code cleaner and much easier to maintain.
Lib overrides android.support.v4.util.LruCache
and uses code from article to measure size of objects in heap.
RxObservableDiskCache is a library to save the results of Single
s or single value Observable
s request on a local disk cache, so the next time the same request is called you get an immediate result.