FileDocCategorySizeDatePackage
Cache.javaAPI DocAndroid 5.1 API2798Thu Mar 12 22:22:56 GMT 2015com.android.volley

Cache

public interface Cache
An interface for a cache keyed by a String with a byte array as data.

Fields Summary
Constructors Summary
Methods Summary
public voidclear()
Empties the cache.

public com.android.volley.Cache$Entryget(java.lang.String key)
Retrieves an entry from the cache.

param
key Cache key
return
An {@link Entry} or null in the event of a cache miss

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

public voidinvalidate(java.lang.String key, boolean fullExpire)
Invalidates an entry in the cache.

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

public voidput(java.lang.String key, com.android.volley.Cache$Entry entry)
Adds or replaces an entry to the cache.

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

public voidremove(java.lang.String key)
Removes an entry from the cache.

param
key Cache key