public static void initialize ( ) { if ( InfinispanCache . get ( ) . exists ( DBProperties . CACHENAME ) ) { InfinispanCache . get ( ) . < String , String > getCache ( DBProperties . CACHENAME ) . clear ( ) ; } else { InfinispanCache . get ( ) . < String , String > getCache ( DBProperties . CACHENAME ) . addListener ( new CacheLogListener ( DBProperties . LOG ) ) ; } DBProperties . cacheOnStart ( ) ; }
Initialize the Cache be calling it . Used from runtime level .