public void cache ( String key , Object obj ) { H . Session sess = session ( ) ; if ( null != sess ) { sess . cache ( key , obj ) ; } else { app ( ) . cache ( ) . put ( key , obj ) ; } }
Add an object into cache by key . The key will be used in conjunction with session id if there is a session instance