Package com.jalios.jtaglib
Class RssCacheManager
- java.lang.Object
-
- com.jalios.jtaglib.RssCacheManager
-
public class RssCacheManager extends java.lang.Object
Manager class used to cache RssChannel instance.- Since:
- jcms-6.0
-
-
Constructor Summary
Constructors Constructor Description RssCacheManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearAll()
Clear the cache from all RssChannel.static RssChannel
getRssChannel(java.lang.String id)
Retrieve a cached RssChannel from its id.static RssChannel
putRssChannel(java.lang.String id, RssChannel rssChannel)
Cache a RssChannel.static RssChannel
removeRssChannel(java.lang.String id)
Remove a cached RssChannel from its id.
-
-
-
Method Detail
-
putRssChannel
public static RssChannel putRssChannel(java.lang.String id, RssChannel rssChannel)
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
public static RssChannel getRssChannel(java.lang.String id)
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
public static RssChannel removeRssChannel(java.lang.String id)
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
-
-