public < T > T cached ( String key ) { H . Session sess = session ( ) ; if ( null != sess ) { return sess . cached ( key ) ; } else { return app ( ) . cache ( ) . get ( key ) ; } }
Return cached object by key . The key will be concatenated with current session id when fetching the cached object