类 NoCache
java.lang.Object
com.android.volley.toolbox.NoCache
- 所有已实现的接口:
Cache
A cache that doesn't.
-
嵌套类概要
从接口继承的嵌套类/接口 com.android.volley.Cache
Cache.Entry -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidclear()Empties the cache.Retrieves an entry from the cache.voidPerforms any potentially long-running actions needed to initialize the cache; will be called from a worker thread.voidinvalidate(String key, boolean fullExpire) Invalidates an entry in the cache.voidput(String key, Cache.Entry entry) Adds or replaces an entry to the cache.voidRemoves an entry from the cache.
-
构造器详细资料
-
NoCache
public NoCache()
-
-
方法详细资料
-
clear
public void clear()从接口复制的说明:CacheEmpties the cache. -
get
从接口复制的说明:CacheRetrieves an entry from the cache.- 指定者:
get在接口中Cache- 参数:
key- Cache key- 返回:
- An
Cache.Entryor null in the event of a cache miss
-
put
从接口复制的说明:CacheAdds or replaces an entry to the cache. -
invalidate
从接口复制的说明:CacheInvalidates an entry in the cache.- 指定者:
invalidate在接口中Cache- 参数:
key- Cache keyfullExpire- True to fully expire the entry, false to soft expire
-
remove
从接口复制的说明:CacheRemoves an entry from the cache. -
initialize
public void initialize()从接口复制的说明:CachePerforms any potentially long-running actions needed to initialize the cache; will be called from a worker thread.- 指定者:
initialize在接口中Cache
-