private void createSearchResultsCache() {
        final String METHODNAME = "createSearchResultsCache";

        if (iSearchResultsCacheEnabled) {
            if (FactoryManager.getCacheUtil().isCacheAvailable()) {
                iSearchResultsCache = FactoryManager.getCacheUtil().initialize("SearchResultsCache", iSearchResultsCacheSize, iSearchResultsCacheSize, iSearchResultsCacheTimeOut);
                if (iSearchResultsCache != null) {
                    if (tc.isDebugEnabled()) {
                        StringBuilder strBuf = new StringBuilder(METHODNAME);
                        strBuf.append(" \nSearch Results Cache: ").append(iSearchResultsCacheName).append(" is enabled:\n");
                        strBuf.append("\tCacheSize: ").append(iSearchResultsCacheSize).append("\n");
                        strBuf.append("\tCacheTimeOut: ").append(iSearchResultsCacheTimeOut).append("\n");
                        strBuf.append("\tCacheResultSizeLimit: ").append(iSearchResultSizeLmit).append("\n");
                        Tr.debug(tc, strBuf.toString());
                    }
                }
            }
        }
    }
private void createSearchResultsCache ( ) { final String METHODNAME = "createSearchResultsCache" ; if ( iSearchResultsCacheEnabled ) { if ( FactoryManager . getCacheUtil ( ) . isCacheAvailable ( ) ) { iSearchResultsCache = FactoryManager . getCacheUtil ( ) . initialize ( "SearchResultsCache" , iSearchResultsCacheSize , iSearchResultsCacheSize , iSearchResultsCacheTimeOut ) ; if ( iSearchResultsCache != null ) { if ( tc . isDebugEnabled ( ) ) { StringBuilder strBuf = new StringBuilder ( METHODNAME ) ; strBuf . append ( " \nSearch Results Cache: " ) . append ( iSearchResultsCacheName ) . append ( " is enabled:\n" ) ; strBuf . append ( "\tCacheSize: " ) . append ( iSearchResultsCacheSize ) . append ( "\n" ) ; strBuf . append ( "\tCacheTimeOut: " ) . append ( iSearchResultsCacheTimeOut ) . append ( "\n" ) ; strBuf . append ( "\tCacheResultSizeLimit: " ) . append ( iSearchResultSizeLmit ) . append ( "\n" ) ; Tr . debug ( tc , strBuf . toString ( ) ) ; } } } } }
Method to create the search results cache, if configured.