public class HttpCache
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get(java.lang.String key)
Get element from cache or null if it can't be found
|
static HttpCache |
getInstance()
Used to get a singleton instance of the cache
|
void |
put(java.lang.String key,
java.lang.String value)
Put a item into the cache
|
public java.lang.String get(java.lang.String key)
key
- The key of the item to getpublic void put(java.lang.String key, java.lang.String value)
key
- The key of the itemvalue
- The itempublic static HttpCache getInstance()