Class CmsXmlSitemapCache

java.lang.Object
org.opencms.site.xmlsitemap.CmsXmlSitemapCache

public class CmsXmlSitemapCache extends Object
Cache for XML sitemaps.

  • Field Details

  • Constructor Details

  • Method Details

    • clear

      public void clear()
      Clears the cache.

    • get

      public String get(String key)
      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

      public void put(String key, String value)
      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