private void createAttributesCache ( ) { final String METHODNAME = "createAttributesCache" ; if ( iAttrsCacheEnabled ) { if ( FactoryManager . getCacheUtil ( ) . isCacheAvailable ( ) ) { iAttrsCache = FactoryManager . getCacheUtil ( ) . initialize ( "AttributesCache" , iAttrsCacheSize , iAttrsCacheSize , iAttrsCacheTimeOut ) ; if ( iAttrsCache != null ) { if ( tc . isDebugEnabled ( ) ) { StringBuilder strBuf = new StringBuilder ( METHODNAME ) ; strBuf . append ( " \nAttributes Cache: " ) . append ( iAttrsCacheName ) . append ( " is enabled:\n" ) ; strBuf . append ( "\tCacheSize: " ) . append ( iAttrsCacheSize ) . append ( "\n" ) ; strBuf . append ( "\tCacheTimeOut: " ) . append ( iAttrsCacheTimeOut ) . append ( "\n" ) ; strBuf . append ( "\tCacheSizeLimit: " ) . append ( iAttrsSizeLmit ) . append ( "\n" ) ; Tr . debug ( tc , strBuf . toString ( ) ) ; } } } } }
Method to create the attributes cache if configured .