public class StrongRefHashMapCacheStorage<T> extends Object implements CacheStorage<T>
| Constructor and Description |
|---|
StrongRefHashMapCacheStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String name,
T value)
Add an item to the cache.
|
void |
clear()
The method clears the cache.
|
T |
get(String name)
Get an item from the cache.
|
public void add(String name, T value)
CacheStorageadd in interface CacheStorage<T>name - The lookup key.value - The value to be cached.public T get(String name)
CacheStorageget in interface CacheStorage<T>name - The lookup key.public void clear()
CacheStorageclear in interface CacheStorage<T>Copyright © 2010–2019. All rights reserved.