code: public static Cache getDefault(PageContext pc, int type) throws IOException {
  	// get default from application conetxt
  	String name = pc != null ? pc.getApplicationContext().getDefaultCacheName(type) : null;
  	if (!StringUtil.isEmpty(name)) {
  	    Cache cc = getCache(pc, name, null);
  	    if (cc != null) return cc;
  	}
  
  	// get default from config
  	Config config = ThreadLocalPageContext.getConfig(pc);
  	CacheConnection cc = ((ConfigImpl) config).getCacheDefaultConnection(type);
  	if (cc == null)
  	    throw new CacheException("there is no default " + toStringType(type, "") + " cache defined, you need to define this default cache in the Lucee Administrator");
  	return cc.getInstance(config);
      }
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_...
  @return matching cache
  @throws IOException