@ Trivial public static DCache getCache ( String cacheName ) { final String methodName = "getCache()" ; DCache cacheOut = ServerCache . cache ; if ( cacheName != null ) { cacheName = normalizeCacheName ( cacheName , null ) ; } if ( cacheName != null && ! cacheName . equalsIgnoreCase ( DCacheBase . DEFAULT_CACHE_NAME ) ) { cacheOut = cacheInstances . get ( cacheName ) ; } if ( cacheOut == null && TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + " could not find cache for cacheName=" + cacheName ) ; } return cacheOut ; }
Get a named cache . Caller must check for null return .