void function ( CacheSpan arg0 ) { TreeSet < CacheSpan > loc0 = cachedSpans . get ( arg0 . key ) ; if ( loc0 == null ) { loc0 = new TreeSet < > ( ) ; cachedSpans . put ( arg0 . key , loc0 ) ; } loc0 . add ( arg0 ) ; totalSpace += arg0 . length ; notifySpanAdded ( arg0 ) ; }
adds a cached span to the in-memory representation . concode_field_sep HashMap<String,TreeSet<CacheSpan>> cachedSpans concode_elem_sep File cacheDir concode_elem_sep long totalSpace concode_elem_sep HashMap<String,ArrayList<Listener>> listeners concode_elem_sep HashMap<String,CacheSpan> lockedSpans concode_elem_sep CacheEvictor evictor concode_field_sep void notifySpanRemoved concode_elem_sep CacheSpan getSpan concode_elem_sep void notifySpanAdded concode_elem_sep void removeListener concode_elem_sep Set<String> getKeys concode_elem_sep long getCacheSpace concode_elem_sep boolean isCached concode_elem_sep File startFile concode_elem_sep void removeStaleSpans concode_elem_sep void releaseHoleSpan concode_elem_sep void removeSpan concode_elem_sep CacheSpan startReadWrite concode_elem_sep void commitFile concode_elem_sep CacheSpan startReadWriteNonBlocking concode_elem_sep CacheSpan startReadWriteNonBlocking concode_elem_sep void initialize concode_elem_sep void notifySpanTouched concode_elem_sep NavigableSet<CacheSpan> getCachedSpans concode_elem_sep NavigableSet<CacheSpan> addListener