code: public static Cache getDefault(PageContext pc, int type, Cache defaultValue) {
  	// get default from application conetx
  	String name = null;
  	if (pc != null && pc.getApplicationContext() != null) name = pc.getApplicationContext().getDefaultCacheName(type);
  	Config config = ThreadLocalPageContext.getConfig(pc);
  	if (!StringUtil.isEmpty(name)) {
  	    Cache cc = getCache(pc, name, null);
  	    if (cc != null) return cc;
  	}
  
  	// get default from config
  	CacheConnection cc = ((ConfigImpl) config).getCacheDefaultConnection(type);
  	if (cc == null) return defaultValue;
  	try {
  	    return cc.getInstance(config);
  	}
  	catch (Throwable t) {
  	    ExceptionUtil.rethrowIfNecessary(t);
  	    return defaultValue;
  	}
      }
docs: get the default cache for a certain type, also check definitions in application context
  (application . cfc/cfapplication)
  
  @param pc current PageContext
  @param type default type -> Config.CACHE_DEFAULT_...
  @param defaultValue value returned when there is no default cache for this type
  @return matching cache