The idea of cache reporting was suggested to me. Something where caching would report which caches were being accessed, how often, the size, how many times they are flushed etc...
I figured it might be possible to simply write out debug information to a log file with relevant info. Then we could write an app/script to parse into coherent information regarding cache usage. This might help developers to fine tune their ibatis cache.
Thoughts?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The idea of cache reporting was suggested to me. Something where caching would report which caches were being accessed, how often, the size, how many times they are flushed etc...
I figured it might be possible to simply write out debug information to a log file with relevant info. Then we could write an app/script to parse into coherent information regarding cache usage. This might help developers to fine tune their ibatis cache.
Thoughts?
Log4j is a good suggestion for this. The CacheModel class already has a getHitRatio() method on it, so it should be a piece of cake.
Cheers,
Clinton