public class PreloadDataHelper
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
class |
PreloadDataHelper.ChangeTabCountry |
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
CACHE_FOLLOW_ACTIVE |
static java.lang.String |
CACHE_FOLLOW_BATCH |
static java.lang.String |
CACHE_FOLLOW_FEED |
static java.lang.String |
CACHE_FOLLOW_LIVE |
static java.lang.String |
CACHE_FOLLOW_RECOMMEND_LIVE |
static java.lang.String |
CACHE_FOLLOW_TOPIC |
static java.lang.String |
CACHE_NEW_LIVE |
static java.lang.String |
CACHE_RECENTLY |
static java.lang.String |
CACHE_RECOMMENT_FOR_YOU |
static java.lang.String |
CACHE_WORLD_LIVE |
static int |
CACHED_VALID_TIME |
构造器和说明 |
---|
PreloadDataHelper() |
限定符和类型 | 方法和说明 |
---|---|
void |
clearCachedDataForKey(java.lang.String key) |
PreloadInfo |
getCachedData(java.lang.String key) |
long |
getPreloadTime() |
boolean |
isCacheOutOfDate()
判断缓存的数据是否过期了
|
void |
preloadAndCacheData()
使用batch接口预加载follow new world页面数据
|
void |
setGender(int gender) |
public static final java.lang.String CACHE_FOLLOW_ACTIVE
public static final java.lang.String CACHE_FOLLOW_LIVE
public static final java.lang.String CACHE_FOLLOW_FEED
public static final java.lang.String CACHE_FOLLOW_RECOMMEND_LIVE
public static final java.lang.String CACHE_FOLLOW_TOPIC
public static final java.lang.String CACHE_NEW_LIVE
public static final java.lang.String CACHE_WORLD_LIVE
public static final java.lang.String CACHE_FOLLOW_BATCH
public static final java.lang.String CACHE_RECENTLY
public static final java.lang.String CACHE_RECOMMENT_FOR_YOU
public static final int CACHED_VALID_TIME
public void setGender(int gender)
public void preloadAndCacheData()
public long getPreloadTime()
public boolean isCacheOutOfDate()
public PreloadInfo getCachedData(java.lang.String key)
public void clearCachedDataForKey(java.lang.String key)