public void put ( Entity entity ) { EntityType entityType = entity . getEntityType ( ) ; cache . put ( EntityKey . create ( entityType , entity . getIdValue ( ) ) , CacheHit . of ( entityHydration . dehydrate ( entity ) ) ) ; }
Inserts an entity into the cache .