[Introduction to ASimpleCache of Distributed Cache]

ASimpleCache is a lightweight open source caching framework for android. Lightweight to only one java file (simplified from a dozen classes).

 

1. What can it cache?

Ordinary strings, JsonObject, JsonArray, Bitmap, Drawable, serialized java objects, and byte data.



 

2. What are its characteristics?

(1: Light, so light that there is only one JAVA file.

(2: Configurable, you can configure the cache path, cache size, number of caches, etc.

(3: The cache timeout can be set, and the cache timeout will be automatically invalidated and deleted.

(4: Support multi-process.

 

3. Usage scenarios of ASimpleCache in Android

(1 Replace SharePreference as a configuration file;

(2 It can cache network request data, and can be used as a caching tool for app data (string, JsonObject, JsonArray, Bitmap, Drawable, serialized java objects, and byte data);

(3 can be used as a cache library for preloaded data;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326528606&siteId=291194637