| Modifier and Type | Method and Description |
|---|---|
| public V | |
| public static < the type of keys maintained by this cache K, the type of mapped values V> Cache | Returns: a new cachetimeout in seconds timeout)Creates a new cache with the specified timeout. |
| public void | |
| public void | |
| public int |
| get | back to summary |
|---|---|
| public V get(K key) Fetches the key from the cache
| |
| newCache | back to summary |
|---|---|
| public static <K, V> Cache Creates a new cache with the specified timeout.
The cache implementation is obtained using
| |
| put | back to summary |
|---|---|
| public void put(K key, V value) Stores a binding for the key and the value in the cache
| |
| remove | back to summary |
|---|---|
| public void remove(K key) Removes the binding for the key from the cache
| |
| size | back to summary |
|---|---|
| public int size() Returns the number of bindings in this cache
| |