public void put ( Id id , Object value , Mode mode ) { if ( Mode . WRITE . equals ( mode ) ) { writeCache . put ( id , value ) ; } readCache . put ( new CacheKey ( id ) , value ) ; }
Put an instance into the cache .