Package org.opencms.site.xmlsitemap
Class CmsXmlSitemapCache
java.lang.Object
org.opencms.site.xmlsitemap.CmsXmlSitemapCache
Cache for XML sitemaps.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
INSTANCE
Static instance for this class.
-
-
Constructor Details
-
CmsXmlSitemapCache
public CmsXmlSitemapCache()
-
-
Method Details
-
clear
Clears the cache. -
get
Gets the cached entry for the given key (the key will normally be the root path of a sitemap.xml file).- Parameters:
key
- the key- Returns:
- the cached XML sitemap, or null if no cached value exists
-
put
Stores an XML sitemap in the cache.- Parameters:
key
- the XML sitemap key (usually the root path of the sitemap.xml)value
- the XML sitemap content
-