Package com.poscoict.glueframework.cache

cache package.

See:
          Description

Interface Summary
GlueCacheLoader ij½¬ ·Î´õ ÀÎÅÍÆäÀ̽º.
GlueCacheManager ij½¬¿¡ °ü·ÃµÈ ¼­ºñ½º¸¦ Á¦°øÇÏ´Â ÀÎÅÍÆäÀ̽º.
GlueCacheRegions Glue Framework¿¡¼­ »ç¿ëÇϴ ij½¬ ¿µ¿ª¸íÀ» Á¤ÀÇÇÑ ÀÎÅÍÆäÀ̽º »ó¼ö.
 

Exception Summary
GlueCacheException Cache System¿¡ °ü·ÃµÈ ¿¡·¯°¡ ¹ß»ýÇÏ¸é ´øÁ®Áö´Â Exception Ŭ·¡½º
 

Package com.poscoict.glueframework.cache Description

cache package.

Cache Manager ´Â applicationContext.xml¿¡ ´ÙÀ½°ú °°ÀÌ Á¤ÀÇÇÑ´Ù. µÑ Áß Çϳª¸¦ ¼±ÅÃÇؼ­ »ç¿ëÇϵµ·Ï ÇÑ´Ù.

 applicationCotext.xml ¿¹ 
 <bean id="cacheManager-1" class="com.poscoict.glueframework.cache.ehcache.GlueEhCacheManager"/>
 <bean id="cacheManager-2" class="com.poscoict.glueframework.cache.jcs.GlueJCSCacheManager"/>
 
  java code ¿¹ 
 
 Strinb cacheManagerBeanId = ... ;
 GlueCacheManager cacheManager = (GlueCacheManager)GlueStaticContext.getBeanFactory().getBeanObject(cacheManagerBeanId);
 Object cacheKey = "test-key";
 Object cacheObject = null;
 cacheObject = cacheManager.getCacheObject(cacheKey);
 if(cacheObject == null){
     cacheObject = "ABC";
     cacheManager.putCacheObject(cacheKey, cacheObject);
     System.out.println(cacheKey + "ÀÇ À̸§À¸·Î ["+ cacheObject + "]¸¦ ij½ÌÇÕ´Ï´Ù.");
 }else{
     System.out.println(cacheKey + "ÀÇ À̸§À¸·Î ij½ÌµÈ Data´Â ["+ cacheObject + "] ÀÔ´Ï´Ù. ");
 }
 
 

Since:
2013. 5. 10.
Version:
1.0.0
Author:
Ç㠵γç


Copyright © 2013–2014 POSCO ICT SWÁ¦Ç°±â¼úÆÀ. All rights reserved.