code: public Cache createCache(String name, CacheConfiguration config) throws CacheException {
  		
  		// 默认使用同步缓存
  		int type = Cache.SYN_CACHE; 
  		
  		if (config instanceof EhCacheConfiguration) {
  			type = Cache.EHCACHE_CACHE;
  		} else if (config instanceof MemcachedCacheConfiguration) {
  			type = Cache.MEMCACHED_CACHE;
  		}
  		return createCache(name, config, type);
  	}
docs: 生成缓存
  
  @param name 缓存名称
  @param config 缓存配置
  
  @return 生成的缓存对象
  
  @throws CacheException 缓存异常