public class CacheManager
extends Object
Cache| Modifier and Type | Method and Description |
|---|---|
void |
add(String topic,
Cache<?,?> cache)
Adds the cache to the storage using topic as a key.
|
void |
clear()
Clears all registered caches.
|
void |
clear(String topic)
Clears the cache associated with the topic.
|
Cache<?,?> |
get(String topic)
Gets the cache associated with the topic.
|
static CacheManager |
instance()
Returns instance of the CacheManager
|
void |
remove(String topic,
Cache<?,?> cache)
Removes the cache associated with the topic from the storage.
|
public static CacheManager instance()
public void add(String topic,
Cache<?,?> cache)
topic - the keycache - the cachepublic void clear()
public void clear(String topic)
topic - the topicpublic Cache<?,?> get(String topic)
topic - the topicpublic void remove(String topic,
Cache<?,?> cache)
topic - the topiccache - the cacheCopyright © 2010-2020 Toolsverse. All Rights Reserved.