• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Refreshing cache in ForumRepository

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rafael,

We are having issues with the cache object in ForumRepository.java. The cache somehow sometimes gets invalidated and the categories don't show even if they exist in the database. To eliminate these problems, each time the getAllCategories method is called, we would like to invalidate the cache and execute the start method again, so the cache is refreshed from the database. Is there any easy way to invalidate the entire cache at one time? I noticed that it does not suffice to refresh just the CATEGORIES_SET..which is why it probably makes sense to invalidate the cache and invoke the start method once again. Thank you.

Regards,
Mallika
[originally posted on jforum.net by mallikamt]
 
Everyone is a villain in someone else's story. Especially this devious tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic