/** * Increments the remove count. Gets the cache that was injected by the lateral factory. Calls * remove on the cache. * <p> * @see org.apache.commons.jcs.engine.behavior.ICacheListener#handleRemove(java.lang.String, * Object) */ @Override public void handleRemove( String cacheName, K key ) throws IOException { removeCnt++; if ( log.isInfoEnabled() ) { if ( getRemoveCnt() % 100 == 0 ) { log.info( "Remove Count = " + getRemoveCnt() ); } } if ( log.isDebugEnabled() ) { log.debug( "handleRemove> cacheName=" + cacheName + ", key=" + key ); } getCache( cacheName ).localRemove( key ); }
/** * Increments the remove count. Gets the cache that was injected by the lateral factory. Calls * remove on the cache. * <p> * @see org.apache.commons.jcs.engine.behavior.ICacheListener#handleRemove(java.lang.String, * Object) */ @Override public void handleRemove( String cacheName, K key ) throws IOException { removeCnt++; if ( log.isInfoEnabled() ) { if ( getRemoveCnt() % 100 == 0 ) { log.info( "Remove Count = " + getRemoveCnt() ); } } if ( log.isDebugEnabled() ) { log.debug( "handleRemove> cacheName=" + cacheName + ", key=" + key ); } getCache( cacheName ).localRemove( key ); }