org.xwiki.cache.config
Class LRUCacheConfiguration
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.xwiki.cache.config.CacheConfiguration
org.xwiki.cache.config.LRUCacheConfiguration
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,Object>
public class LRUCacheConfiguration
- extends CacheConfiguration
Cache configuration using LRU eviction method.
- Since:
- 4.3M1
- Version:
- $Id: eb7aa3f0983fa5d6493224f4a87903e3a26a7f66 $
- See Also:
- Serialized Form
|
Constructor Summary |
LRUCacheConfiguration()
Creates new LRUCacheConfiguration instance with empty (null) configurationId, default size of 100 and time to
live 0. |
LRUCacheConfiguration(String configurationId)
Creates new LRUCacheConfiguration instance with given configurationId, default max size of 100 and time to live
0. |
LRUCacheConfiguration(String configurationId,
int maxSize)
Creates new LRUCacheConfiguration instance with given configurationId and max size, and default time to live 0. |
LRUCacheConfiguration(String configurationId,
int maxSize,
int timeToLive)
Creates new LRUCacheConfiguration instance with given configurationId, max size and time to live. |
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
LRUCacheConfiguration
public LRUCacheConfiguration()
- Creates new LRUCacheConfiguration instance with empty (null) configurationId, default size of 100 and time to
live 0.
LRUCacheConfiguration
public LRUCacheConfiguration(String configurationId)
- Creates new LRUCacheConfiguration instance with given configurationId, default max size of 100 and time to live
0.
- Parameters:
configurationId - configuration identifier
LRUCacheConfiguration
public LRUCacheConfiguration(String configurationId,
int maxSize)
- Creates new LRUCacheConfiguration instance with given configurationId and max size, and default time to live 0.
- Parameters:
configurationId - configuration identifiermaxSize - maximum cache capacity
LRUCacheConfiguration
public LRUCacheConfiguration(String configurationId,
int maxSize,
int timeToLive)
- Creates new LRUCacheConfiguration instance with given configurationId, max size and time to live.
- Parameters:
configurationId - configuration identifiermaxSize - maximum cache capacitytimeToLive - for how long cache entry will be valid (in seconds)
Copyright © 2004–2013 XWiki. All rights reserved.