File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JForum and the fly likes where can I find the Documentation about cache? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "where can I find the Documentation about cache?" Watch "where can I find the Documentation about cache?" New topic
Author

where can I find the Documentation about cache?

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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]
 
 
subject: where can I find the Documentation about cache?