true: specifies that the mediator instance is a response collection instance
false: specifies that the mediator instance is a cache serving instance
Specifies the maximum size of a message to be cached in bytes. This is an optional attribute and its default value is set to unlimited.
Defines the maximum number of elements to be cached.
Defines the hash generator class.
When caching response messages, a hash value is generated based on the request's URI, transport headers, and the payload (if available). WSO2 has a default REQUESTHASHGenerator class written to generate the hash value. Click hereto view the sample.
If you want to change this default implementation (for example, to exclude certain headers), you can write a new hash generator implementation by extending the REQUESTHASHGenerator and overriding its getDigest() method. Once done, add the new class as the hashGenerator attribute of the <cache> element in the velocity_template.xml file.