Package com.jalios.jtaglib
Class RssCacheManager
java.lang.Object
com.jalios.jtaglib.RssCacheManager
Manager class used to cache RssChannel instance.
- Since:
- jcms-6.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclearAll()Clear the cache from all RssChannel.static RssChannelgetRssChannel(String id) Retrieve a cached RssChannel from its id.static RssChannelputRssChannel(String id, RssChannel rssChannel) Cache a RssChannel.static RssChannelRemove a cached RssChannel from its id.
-
Constructor Details
-
RssCacheManager
public RssCacheManager()
-
-
Method Details
-
putRssChannel
Cache a RssChannel.- Parameters:
id- the unique id of the RssChannelrssChannel- the RssChannel instance to cache- Returns:
- the previous RssChannel instance associated to this id or null if none
- Since:
- jcms-6.0
-
getRssChannel
Retrieve a cached RssChannel from its id.- Parameters:
id- the id of the RssChannel- Returns:
- the cached RssChannel or null if it could not be found
- Since:
- jcms-6.0
-
removeRssChannel
Remove a cached RssChannel from its id.- Parameters:
id- the id of the RssChannel- Returns:
- the value associated to this id before removal
- Since:
- jcms-6.0
-
clearAll
public static void clearAll()Clear the cache from all RssChannel.- Since:
- jcms-6.0
-