Updating selfpopulatingcache example
I strongly suggest that before using the library in live project you visit the project website and read the documentation to be aware of other functionalities not covered in this article.
Update: Spring 3.1 release, among many enhancements, brings native support for method caching with so-called cache abstraction.
The documentation is intended as a overview guide through the functionality of cache2k and will help you discover every important feature.
At some points rationale or background information is given. You will find additional information in the API Java Doc, in examples, and in the test cases.
If we never did fly on that route it will ask all our friends.
To be sure that the caching works without reading the log files we create unit tests for caching.
For this tutorial we modify the Message Storage interface and we add void set Delegate(Message Storage storage Delegate) method to it.
To remove cache from the messages in a simple way call add Message() of Message Controller.
Then repeat previous steps to make sure the cache was cleared properly.