int type = Util.toType(strType,ConfigImpl.CACHE_DEFAULT_NONE);
if(type==ConfigImpl.CACHE_DEFAULT_NONE)
throw new FunctionException(pc,"CacheGetDefaultCacheName",1,"type","invalid type defintion ["+strType+"], valid types are [object,resource,template,query]");
ConfigImpl config=(ConfigImpl) pc.getConfig();
CacheConnection conn = config.getCacheDefaultConnection(type);
if(conn==null)
throw new ExpressionException("there is no default cache defined for type ["+strType+"]");
return conn.getName();
}