接口 com.alisoft.xplatform.asf.cache.ICache
的使用

使用 ICache 的软件包
com.alisoft.xplatform.asf.cache   
com.alisoft.xplatform.asf.cache.impl   
com.alisoft.xplatform.asf.cache.memcached   
 

com.alisoft.xplatform.asf.cacheICache 的使用
 

类型参数类型为 ICachecom.alisoft.xplatform.asf.cache 中的类
 interface ICacheManager<T extends ICache<?,?>>
          CacheManager 统一接口
 

com.alisoft.xplatform.asf.cacheICache 的子接口
 interface IMemcachedCache
          Memcached Cache的接口定义
 

com.alisoft.xplatform.asf.cache.implICache 的使用
 

实现 ICachecom.alisoft.xplatform.asf.cache.impl 中的类
 class DefaultCacheImpl
          一个默认的本地Cache的实现,线程安全
 

com.alisoft.xplatform.asf.cache.memcachedICache 的使用
 

实现 ICachecom.alisoft.xplatform.asf.cache.memcached 中的类
 class MemcachedCache
           
 

类型参数类型为 ICachecom.alisoft.xplatform.asf.cache.memcached 中的方法
static
<B extends ICache<?,?>>
ICacheManager<B>
CacheUtil.getCacheManager(java.lang.Class<B> cache, java.lang.String defaultImplClass)
          获取CacheManager的接口类,首先去查找META-INF/services/下是否有定义,如果没有载入defaultImplClass的定义
 



Copyright © 2009 . All Rights Reserved.