public class GlueEhCacheManager extends Object implements GlueCacheManager, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Bean Property - location : (¼±ÅÃ) ehcache.xml ÀÇ °æ·Î¸¦ ÁöÁ¤. classpath »óÀÇ À§Ä¡ ¶Ç´Â ±×¿ÜÀÇ À§Ä¡¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖÀ½ ¿¹Á¦»ç¿ë ¿¹# 1 »ç¿ë ¿¹# 2 »ç¿ë ¿¹# 3 »ç¿ë ¿¹# 4 Âü°í : ehcache.xml ÆÄÀÏ ³»¿ë
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger
logger
|
Constructor and Description |
---|
GlueEhCacheManager() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
clear()
µðÆúÆ® ij½¬ ¿µ¿ªÀÇ ¸ðµç ¿ÀºêÁ§Æ®¸¦ »èÁ¦ÇÔ
|
void |
clear(String name)
ij½¬ ¿µ¿ªÀÇ ¸ðµç ¿ÀºêÁ§Æ®¸¦ »èÁ¦ÇÔ
|
void |
destroy() |
Object |
getCacheObject(Object cacheKey)
µðÆúµå ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ.
|
<T> T |
getCacheObject(Object cacheKey,
Class<T> valueClass)
µðÆúµå ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ.
|
Object |
getCacheObject(Object cacheKey,
String name)
ÁÖ¾îÁø ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ.
|
<T> T |
getCacheObject(Object cacheKey,
String name,
Class<T> valueClass)
ÁÖ¾îÁø ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ.
|
Object |
getCacheObject(Object cacheKey,
String name,
GlueCacheLoader loader)
ÁÖ¾îÁø ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ.
|
<T> T |
getCacheObject(Object cacheKey,
String name,
GlueCacheLoader loader,
Class<T> valueClass)
ÁÖ¾îÁø ij½¬ ¿µ¿ª¿¡¼ ij½¬ Å°¿¡ ÇØ´çÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®ÅÏ.
|
org.springframework.core.io.Resource |
getLocation()
getter method for DI.
|
boolean |
isPresent(Object cacheKey)
µðÆúÆ® ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®ÀÇ Á¸Àç¿©ºÎ¸¦ È®ÀÎ
|
boolean |
isPresent(Object cacheKey,
String name)
ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®ÀÇ Á¸Àç¿©ºÎ¸¦ È®ÀÎ
|
void |
putCacheObject(Object cacheKey,
Object cacheObject)
µðÆúÆ® ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ ij½³ ÇÔ
|
void |
putCacheObject(Object cacheKey,
Object cacheObject,
String name)
ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ ij½³ ÇÔ
|
void |
removeCacheObject(Object cacheKey)
µðÆúÆ® ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ »èÁ¦ÇÔ
|
void |
removeCacheObject(Object cacheKey,
String name)
ij½¬ ¿µ¿ª¿¡ ÁÖ¾îÁø Å°¸¦ »ç¿ëÇÏ¿© ¿ÀºêÁ§Æ®¸¦ »èÁ¦ÇÔ
|
void |
setLocation(org.springframework.core.io.Resource location)
setter method for DI.
|
public org.springframework.core.io.Resource getLocation()
public void setLocation(org.springframework.core.io.Resource location)
location
- public Object getCacheObject(Object cacheKey)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°public Object getCacheObject(Object cacheKey, String name)
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°name
- ij½¬ ¿µ¿ª¸í : cache ÀÇ name(ex. _default-region)public <T> T getCacheObject(Object cacheKey, Class<T> valueClass)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°valueClass
- ¿ÀºêÁ§Æ® Ŭ·¡½ºpublic <T> T getCacheObject(Object cacheKey, String name, Class<T> valueClass)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°name
- ij½¬ ¿µ¿ª¸ívalueClass
- ¿ÀºêÁ§Æ® Ŭ·¡½ºpublic <T> T getCacheObject(Object cacheKey, String name, GlueCacheLoader loader, Class<T> valueClass)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°name
- ij½¬ ¿µ¿ª¸íloader
- ij½¬ ·Î´õvalueClass
- ¿ÀºêÁ§Æ® Ŭ·¡½ºpublic Object getCacheObject(Object cacheKey, String name, GlueCacheLoader loader)
GlueCacheManager
getCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°name
- ij½¬ ¿µ¿ª¸íloader
- ij½¬ ·Î´õpublic void putCacheObject(Object cacheKey, Object cacheObject)
GlueCacheManager
putCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°cacheObject
- ij½¬ ´ë»ó ¿ÀºêÁ§Æ®public void putCacheObject(Object cacheKey, Object cacheObject, String name)
GlueCacheManager
putCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°cacheObject
- ij½¬ ´ë»ó ¿ÀºêÁ§Æ®name
- ij½¬ ¿µ¿ª¸ípublic boolean isPresent(Object cacheKey)
GlueCacheManager
isPresent
in interface GlueCacheManager
cacheKey
- ij½¬ Å°public boolean isPresent(Object cacheKey, String name)
GlueCacheManager
isPresent
in interface GlueCacheManager
cacheKey
- ij½¬ Å°name
- ij½¬ ¿µ¿ª¸ípublic void removeCacheObject(Object cacheKey)
GlueCacheManager
removeCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°public void removeCacheObject(Object cacheKey, String name)
GlueCacheManager
removeCacheObject
in interface GlueCacheManager
cacheKey
- ij½¬ Å°name
- ij½¬ ¿µ¿ª¸ípublic void clear()
GlueCacheManager
clear
in interface GlueCacheManager
public void clear(String name)
GlueCacheManager
clear
in interface GlueCacheManager
name
- ij½¬ ¿µ¿ª¸ípublic void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
Copyright © 2013–2019 POSCO ICT. All rights reserved.