1. What can it cache?
Common strings, json, serialized java objects, and byte numbers.
2. What are its characteristics?
Main features:
1: Light, light to only one JAVA file.
2: configurable. You can configure the cache path, cache size, and cache quantity.
3: You can set the cache timeout time. The cache timeout value automatically expires and is deleted.
4: multi-process support.
3. What scenarios can it be used in android?
1. Replace SharePreference as the configuration file
2.: Network request data can be cached. For example, the android client of oschina can cache the news content of http requests. The cache time is assumed to be 1 hour and will automatically expire after timeout, allow the client to request new data to reduce Client Traffic and server concurrency.
3. Tell me
4. How to Use ASimpleCache?
The following is a small demo that you would like:
- ACache mCache = ACache. get (this );
- MCache. put ("test_key", "test value ");