- java.lang.Object
-
- org.omnifaces.util.cache.CacheInstancePerScopeProvider
-
- org.omnifaces.util.cache.DefaultCacheProvider
-
- All Implemented Interfaces:
CacheProvider
public class DefaultCacheProvider extends CacheInstancePerScopeProvider
A default cache provider that will be used by the OmniFaces Cache component if no explicit provider has been configured.This will create a Cache instance that uses a
LruCache
for the actual implementation.- Since:
- 1.1
- Author:
- Arjan Tijms
-
-
Field Summary
-
Fields inherited from class org.omnifaces.util.cache.CacheInstancePerScopeProvider
APP_MAX_CAP_PARAM_NAME, APP_TTL_PARAM_NAME, DEFAULT_CACHE_PARAM_NAME, SESSION_MAX_CAP_PARAM_NAME, SESSION_TTL_PARAM_NAME
-
-
Constructor Summary
Constructors Constructor Description DefaultCacheProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Cache
createCache(Integer timeToLive, Integer maxCapacity)
-
Methods inherited from class org.omnifaces.util.cache.CacheInstancePerScopeProvider
getCache, getParameters, setParameters
-
-
-
-
Method Detail
-
createCache
protected Cache createCache(Integer timeToLive, Integer maxCapacity)
- Specified by:
createCache
in classCacheInstancePerScopeProvider
-
-