protected < T > void remove ( Class < T > entityClass , Object id , boolean spillOverToL2 ) { String key = cacheKey ( entityClass , id ) ; LOG . debug ( "Removing from L1 >> " + key ) ; Object o = sessionCache . remove ( key ) ; if ( spillOverToL2 ) { LOG . debug ( "Removing from L2 >> " + key ) ; Cache c = ( Cache ) getL2Cache ( ) ; if ( c != null ) { c . evict ( entityClass , key ) ; } } }
Removes the from cache .