com.android.volley.toolbox
Class NoCache

java.lang.Object
  extended by com.android.volley.toolbox.NoCache
All Implemented Interfaces:
Cache

public class NoCache
extends Object
implements Cache

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

NoCache

public NoCache()
Method Detail

clear

public void clear()
Description copied from interface: Cache
Empties the cache.

Specified by:
clear in interface Cache

get

public Cache.Entry get(String key)
Description copied from interface: Cache
Retrieves an entry from the cache.

Specified by:
get in interface Cache
Parameters:
key - Cache key
Returns:
An Cache.Entry or null in the event of a cache miss

put

public void put(String key,
                Cache.Entry entry)
Description copied from interface: Cache
Adds or replaces an entry to the cache.

Specified by:
put in interface Cache
Parameters:
key - Cache key
entry - Data to store and metadata for cache coherency, TTL, etc.

invalidate

public void invalidate(String key,
                       boolean fullExpire)
Description copied from interface: Cache
Invalidates an entry in the cache.

Specified by:
invalidate in interface Cache
Parameters:
key - Cache key
fullExpire - True to fully expire the entry, false to soft expire

remove

public void remove(String key)
Description copied from interface: Cache
Removes an entry from the cache.

Specified by:
remove in interface Cache
Parameters:
key - Cache key

initialize

public void initialize()
Description copied from interface: Cache
Performs any potentially long-running actions needed to initialize the cache; will be called from a worker thread.

Specified by:
initialize in interface Cache