public class HashMapCache extends AbstractCache
Response
objects. Uses a basic HashMap for caching. Not for production usage.Constructor and Description |
---|
HashMapCache()
Constructs a new cache.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Clears the cache.
|
Response |
get(String url)
Looks for a cached response for the given URL.
|
void |
put(String url,
Response r)
Caches the given response.
|
void |
remove(String url)
Removes the given response and its handlers from the cache.
|
public void destroy()
Cache
public Response get(String url)
Cache
public void put(String url, Response r)
Cache
Copyright © 2008-2012 Anders Møller & Mathias Schwarz.