Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

where can I find the Documentation about cache?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The red means that only the link is there.

What are your questions?

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
About the cache Documentation, I found the wiki of JForum Documentation,but cache sections is in red background......
I don't know who it works,and the cache's configuration,where can I get some Documentation?

[originally posted on jforum.net by hadeslee]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Replied to Duplicate question in test forum first...

The source is the only documentation for this. In particular, you can look at the net.jforum.cache package. There are two main interfaces for this, CacheEngine and Cacheable.

CacheEngine is the main driver for all in memory cache "Repositories". It has three variations of implementations in the cache package that you can look at.

Which cache engine that is used is defined in the config properties. Seach the SystemGlobal.properties file for "cache" to find cache related entries.

Implementor's of the Cachable interface are classes that use the CacheEngine to store things. These are generally found in the net.jforum.repository package. Specific parts of jForum's code will call the needed *Repository class to update the cache as needed.

Finally, there is some code in JForumBaseServlet and it's subclass, JForum, which make the calls to initialize the cache engine and some repositories. Generally, thru the ConfigLoader class methods.

That should get you pointed in the right direct.
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks,I knew it clearly.

Yestoday, I used debug followed it, and found JForumBaseServlet ,ForumRepository,and CacheEngine ,Cacheable and so on, as you said, it works like you said,thank you very much~
[originally posted on jforum.net by hadeslee]
 
reply
    Bookmark Topic Watch Topic
  • New Topic