org.xwiki.rendering.macro.cache
Class CacheMacroParameters
java.lang.Object
org.xwiki.rendering.macro.cache.CacheMacroParameters
public class CacheMacroParameters
- extends Object
Parameters for the Cache macro.
- Since:
- 3.0M1
- Version:
- $Id: 03f205ec7e5620375c27416cc90edb88d863b5b7 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheMacroParameters
public CacheMacroParameters()
getId
public String getId()
- Returns:
- the optional unique id to use to cache the content. If not defined then use the content itself as the id
but this doesn't guarantee unicity since the same content could be located on several pages with
different results. Also note that the id is considered containing wiki syntax; this is done so that the
user can use script macros to generate the id
setId
public void setId(String id)
- Parameters:
id - refer to getId()
getTimeToLive
public int getTimeToLive()
- Returns:
- the number of seconds to cache the content
setTimeToLive
public void setTimeToLive(int timeToLive)
- Parameters:
timeToLive - refer to getTimeToLive()
getMaxEntries
public int getMaxEntries()
- Returns:
- the maximum number of entries in the cache (Least Recently Used entries are ejected)
setMaxEntries
public void setMaxEntries(int maxEntries)
- Parameters:
maxEntries - refer to getMaxEntries()
Copyright © 2004-2012 XWiki. All Rights Reserved.