public interface CacheStorage<T>
| 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.
|
void add(String name, T value)
name - The lookup key.value - The value to be cached.T get(String name)
name - The lookup key.void clear()
Copyright © 2010–2021. All rights reserved.