Enabling the object cache

About this task
To use the object cache, do one of the following:

To return an object to the cache after use, call the putIntoCache(Cacheable) method of the object's externalizer. For example, to put a format element into the cache, call the FormatExternalizer.putIntoCache(Cacheable) method

To clear the cache because it is getting too large or it contains objects that the toolkit will not reuse, use the clearCache method of an externalizer. This removes the objects that the externalizer created. For example, if you call the clearCache method of the Format externalizer, the method removes all Format objects from the cache.