Package | Description |
---|---|
cn.trinea.android.common.service.impl |
Modifier and Type | Class and Description |
---|---|
class |
ImageCache
Image Cache
It's a cache with primary cache and secondary cache. |
class |
ImageMemoryCache
Image Memory Cache
It applies to images those uesd frequently, like users avatar of twitter or sina weibo. |
class |
ImageSDCardCache
Image SDCard Cache
It applies to images those uesd frequently and their size is big that we cannot store too much in memory, like pictures of twitter or sina weibo. |
class |
PreloadDataCache<K,V>
Preload data cache, It a good choice for network application which need to preload data.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> SimpleCache<K,V> |
SimpleCache.loadCache(java.lang.String filePath)
restore cache from file
|
Modifier and Type | Method and Description |
---|---|
static <K,V> void |
SimpleCache.saveCache(java.lang.String filePath,
SimpleCache<K,V> cache)
save cache to file, the data of
CacheObject should can be serializabled |