java.lang.Object | |
↳ | com.android.volley.toolbox.NoCache |
A cache that doesn't.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NoCache() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.android.volley.Cache
|
Empties the cache.
Retrieves an entry from the cache.
key | Cache key |
---|
Cache.Entry
or null in the event of a cache miss
Performs any potentially long-running actions needed to initialize the cache; will be called from a worker thread.
Invalidates an entry in the cache.
key | Cache key |
---|---|
fullExpire | True to fully expire the entry, false to soft expire |
Adds or replaces an entry to the cache.
key | Cache key |
---|---|
entry | Data to store and metadata for cache coherency, TTL, etc. |
Removes an entry from the cache.
key | Cache key |
---|