| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| How to use a (performance) cache with CastorIntended Audience Prerequisites Steps Add <cache-type> element to class mapping Tips References Intended AudienceAnyone who wants to enable caching for classes already mapped with Castor JDO. This document addresses the basics to get people familiar with the basic concepts and discusses some implementation details. The example given describes the addition of a <cache-type> element to an existing class mapping. PrerequisitesYou should have a valid class mapping for a Java class, similar to the following one:
StepsHere is how to proceed. Add <cache-type> element to class mappingAdd a <cache-type> element as shown below, specifying the cache provider to use in the 'type' attribute.
This, for example, defines the 'time-limited' cache provider to be used for the com.xyz.MyOtherObject. This cache provider applies internally a time-limited least-recently-used algorithm for com.xyz.MyObject instances .Tips
References
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||