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]