public class GlueJCSCacheManager extends Object implements GlueCacheManager, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
GlueJCSCacheManager
¿ÀºêÁ§Æ®¸¦ ½Ì±ÛÅÏÀ¸·Î »ç¿ëÇϵµ·Ï ±ÇÀåÇÔ. Spring Framework ¿¡¼ Á¦°øÇÏ´Â
Dependency Injection ÆÐÅÏ ±ÇÀå. ½ÇÇàÇϱâ À§Çؼ´Â cache.ccf ÆÄÀÏÀ» Ŭ·¡½ºÆнº ·çÆ®¿¡ À§Ä¡ ½ÃÄѾßÇÑ´Ù.
Bean Property - ¾øÀ½ ¿¹Á¦»ç¿ë ¿¹# 1 Âü°í : cache.ccf ÆÄÀÏ ³»¿ë # DEFAULT CACHE REGION # sets the default aux value for any non configured caches jcs.default= jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes jcs.default.cacheattributes.MaxObjects=1000000 jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes jcs.default.elementattributes.IsEternal=false jcs.default.elementattributes.MaxLifeSeconds=-1 jcs.default.elementattributes.IdleTime=1 jcs.default.elementattributes.IsSpool=true jcs.default.elementattributes.IsRemote=false jcs.default.elementattributes.IsLateral=true
Modifier and Type | Field and Description |
---|---|
protected GlueJCSCacheHolder |
cacheHolder
ij½¬ ¿µ¿ªÀ» °ü¸®Çϴ Ȧ´õ (singleton object)
|
protected org.slf4j.Logger |
logger
logger
|
Constructor and Description |
---|
GlueJCSCacheManager() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
clear()
µðÆúÆ® ij½¬ ¿µ¿ªÀÇ ¸ðµç ¿ÀºêÁ§Æ®¸¦ »èÁ¦ÇÔ
|
void |
clear(String regionName)
ij½¬ ¿µ¿ªÀÇ ¸ðµç ¿ÀºêÁ§Æ®¸¦ »èÁ¦ÇÔ
|
void |
destroy() |
Object |
getCacheObject(Object cacheKey)
µðÆúµå ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ.
|
<T> T |
getCacheObject(Object cacheKey,
Class<T> valueClass)
µðÆúµå ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ.
|
Object |
getCacheObject(Object cacheKey,
String regionName)
ÁÖ¾îÁø ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ.
|
<T> T |
getCacheObject(Object cacheKey,
String regionName,
Class<T> valueClass)
ÁÖ¾îÁø ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ.
|
Object |
getCacheObject(Object cacheKey,
String regionName,
GlueCacheLoader loader)
ÁÖ¾îÁø ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ.
|
<T> T |
getCacheObject(Object cacheKey,
String regionName,
GlueCacheLoader loader,
Class<T> valueClass)
ÁÖ¾îÁø ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ.
|
boolean |
isPresent(Object cacheKey)
µðÆúÆ® ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®ÀÇ Á¸Àç¿©ºÎ¸¦ È®ÀÎ
|
boolean |
isPresent(Object cacheKey,
String regionName)
ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®ÀÇ Á¸Àç¿©ºÎ¸¦ È®ÀÎ
|
void |
putCacheObject(Object cacheKey,
Object cacheObject)
µðÆúÆ® ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ ij½³ ÇÔ
|
void |
putCacheObject(Object cacheKey,
Object cacheObject,
String regionName)
ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ ij½³ ÇÔ
|
void |
removeCacheObject(Object cacheKey)
µðÆúÆ® ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ »èÁ¦ÇÔ
|
void |
removeCacheObject(Object cacheKey,
String regionName)
ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ »èÁ¦ÇÔ
|
protected final org.slf4j.Logger logger
protected GlueJCSCacheHolder cacheHolder
public Object getCacheObject(Object cacheKey)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°public <T> T getCacheObject(Object cacheKey, Class<T> valueClass)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°valueClass
- ¿ÀºêÁ§Æ® Ŭ·¡½ºpublic Object getCacheObject(Object cacheKey, String regionName)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°regionName
- ij½¬ ¿µ¿ª¸ípublic <T> T getCacheObject(Object cacheKey, String regionName, Class<T> valueClass)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°regionName
- ij½¬ ¿µ¿ª¸ívalueClass
- ¿ÀºêÁ§Æ® Ŭ·¡½ºpublic Object getCacheObject(Object cacheKey, String regionName, GlueCacheLoader loader)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°regionName
- ij½¬ ¿µ¿ª¸íloader
- ij½¬ ·Î´õpublic <T> T getCacheObject(Object cacheKey, String regionName, GlueCacheLoader loader, Class<T> valueClass)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°regionName
- ij½¬ ¿µ¿ª¸íloader
- ij½¬ ·Î´õvalueClass
- ¿ÀºêÁ§Æ® Ŭ·¡½ºpublic void putCacheObject(Object cacheKey, Object cacheObject)
GlueCacheManager
putCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°cacheObject
- ij½¬ ´ë»ó ¿ÀºêÁ§Æ®public void putCacheObject(Object cacheKey, Object cacheObject, String regionName)
GlueCacheManager
putCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°cacheObject
- ij½¬ ´ë»ó ¿ÀºêÁ§Æ®regionName
- ij½¬ ¿µ¿ª¸ípublic boolean isPresent(Object cacheKey)
GlueCacheManager
isPresent
in interface GlueCacheManager
cacheKey
- ij½¬ Å°public boolean isPresent(Object cacheKey, String regionName)
GlueCacheManager
isPresent
in interface GlueCacheManager
cacheKey
- ij½¬ Å°regionName
- ij½¬ ¿µ¿ª¸ípublic void removeCacheObject(Object cacheKey)
GlueCacheManager
removeCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°public void removeCacheObject(Object cacheKey, String regionName)
GlueCacheManager
removeCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°regionName
- ij½¬ ¿µ¿ª¸ípublic void clear()
GlueCacheManager
clear
in interface GlueCacheManager
public void clear(String regionName)
GlueCacheManager
clear
in interface GlueCacheManager
regionName
- ij½¬ ¿µ¿ª¸ípublic void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
Copyright © 2013–2019 POSCO ICT. All rights reserved.