/** * Obtains the Cache used by functions in the dns class. This can be used to perform more specific * queries and/or remove elements. * * @param dclass The dns class of data in the cache */ public static synchronized Cache getCache(int dclass) { return Lookup.getDefaultCache(dclass); }
/** * Obtains the (class IN) Cache used by functions in the dns class. This can be used to perform * more specific queries and/or remove elements. */ public static synchronized Cache getCache() { return Lookup.getDefaultCache(DClass.IN); }