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()
Cachepublic Response get(String url)
Cachepublic void put(String url, Response r)
CacheCopyright © 2008-2012 Anders Møller & Mathias Schwarz.