This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using session.clear and session.evict

 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi

what is the difference in clearing the cache using session.evict and session.clear ??

please suggest your ideas
 
Reehan Lalkhanwar
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
session.clear(): Completely clear the session.
session.evict(Object object): Remove this instance from the session cache. i.e. the object that's passed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic