public class

NoCache

extends Object
implements Cache
java.lang.Object
   ↳ com.android.volley.toolbox.NoCache

Class Overview

A cache that doesn't.

Summary

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

Public Constructors

public NoCache ()

Public Methods

public void clear ()

Empties the cache.

public Cache.Entry get (String key)

Retrieves an entry from the cache.

Parameters
key Cache key
Returns

public void initialize ()

Performs any potentially long-running actions needed to initialize the cache; will be called from a worker thread.

public void invalidate (String key, boolean fullExpire)

Invalidates an entry in the cache.

Parameters
key Cache key
fullExpire True to fully expire the entry, false to soft expire

public void put (String key, Cache.Entry entry)

Adds or replaces an entry to the cache.

Parameters
key Cache key
entry Data to store and metadata for cache coherency, TTL, etc.

public void remove (String key)

Removes an entry from the cache.

Parameters
key Cache key