@ SuppressWarnings ( "unchecked" ) private < V > Cache < V > getThreadCache ( String name ) { Map < String , Cache < ? > > threadCacheMap = threadCacheMapHolder . get ( ) ; Cache < V > threadCache = ( Cache < V > ) threadCacheMap . get ( name ) ; if ( threadCache == null ) { threadCache = new MapCacheImpl < V > ( ) ; threadCacheMap . put ( name , threadCache ) ; } return threadCache ; }
Generate a cache bound to the thread .