public ORecord findRecord ( final ORID rid ) { ORecord record ; record = underlying . get ( rid ) ; if ( record != null ) Orient . instance ( ) . getProfiler ( ) . updateCounter ( CACHE_HIT , "Record found in Level1 Cache" , 1L , "db.*.cache.level1.cache.found" ) ; else Orient . instance ( ) . getProfiler ( ) . updateCounter ( CACHE_MISS , "Record not found in Level1 Cache" , 1L , "db.*.cache.level1.cache.notFound" ) ; return record ; }
Looks up for record in cache by it s identifier . Optionally look up in secondary cache and update primary with found record