Package org.appng.core.model
Class ApplicationCacheManager
- java.lang.Object
-
- org.appng.core.model.ApplicationCacheManager
-
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean
,org.springframework.cache.CacheManager
public class ApplicationCacheManager extends Object implements org.springframework.cache.CacheManager, org.springframework.beans.factory.DisposableBean
ACacheManager
that is aware ofSite
s andApplication
s to avoid naming conflicts and also ensure no otherApplication
can access theCache
.
The TTL and maxIdle for theCache
can be configured using the application property "cacheConfig".- See Also:
ApplicationProperties.PROP_CACHE_CONFIG
-
-
Constructor Summary
Constructors Constructor Description ApplicationCacheManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
org.springframework.cache.Cache
getCache(String name)
Collection<String>
getCacheNames()
void
initialize(Site site, Application application, org.springframework.cache.CacheManager delegate)
-
-
-
Method Detail
-
initialize
public void initialize(Site site, Application application, org.springframework.cache.CacheManager delegate)
-
getCache
public org.springframework.cache.Cache getCache(String name)
- Specified by:
getCache
in interfaceorg.springframework.cache.CacheManager
-
getCacheNames
public Collection<String> getCacheNames()
- Specified by:
getCacheNames
in interfaceorg.springframework.cache.CacheManager
-
-