java.lang.Object
org.omnifaces.util.cache.CacheInstancePerScopeProvider
org.omnifaces.util.cache.DefaultCacheProvider
- All Implemented Interfaces:
CacheProvider
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected CachecreateCache(Integer timeToLive, Integer maxCapacity) Methods inherited from class org.omnifaces.util.cache.CacheInstancePerScopeProvider
getCache, getParameters, setParameters
-
Constructor Details
-
DefaultCacheProvider
public DefaultCacheProvider()
-
-
Method Details
-
createCache
- Specified by:
createCachein classCacheInstancePerScopeProvider
-