public VALUE get ( KEY key ) { CacheEntry < KEY , VALUE > cacheEntry = map . get ( key ) ; if ( cacheEntry != null ) { cacheEntry . readCount . incrementAndGet ( ) ; return cacheEntry . value ; } else { return null ; } }
Get the value from the cache . It does not touch the lock so reads are fast . This does not touch the order list so it is fast .