|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.android.volley.toolbox.NoCache
public class NoCache
A cache that doesn't.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.android.volley.Cache |
---|
Cache.Entry |
Constructor Summary | |
---|---|
NoCache()
|
Method Summary | |
---|---|
void |
clear()
Empties the cache. |
Cache.Entry |
get(String key)
Retrieves an entry from the cache. |
void |
initialize()
Performs any potentially long-running actions needed to initialize the cache; will be called from a worker thread. |
void |
invalidate(String key,
boolean fullExpire)
Invalidates an entry in the cache. |
void |
put(String key,
Cache.Entry entry)
Adds or replaces an entry to the cache. |
void |
remove(String key)
Removes an entry from the cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoCache()
Method Detail |
---|
public void clear()
Cache
clear
in interface Cache
public Cache.Entry get(String key)
Cache
get
in interface Cache
key
- Cache key
Cache.Entry
or null in the event of a cache misspublic void put(String key, Cache.Entry entry)
Cache
put
in interface Cache
key
- Cache keyentry
- Data to store and metadata for cache coherency, TTL, etc.public void invalidate(String key, boolean fullExpire)
Cache
invalidate
in interface Cache
key
- Cache keyfullExpire
- True to fully expire the entry, false to soft expirepublic void remove(String key)
Cache
remove
in interface Cache
key
- Cache keypublic void initialize()
Cache
initialize
in interface Cache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |