File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where can I find the Documentation about cache?

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic