This documentation is for WSO2 API Manager 1.9.0 View documentation for the latest release.
Page Comparison - Configuring Caching (v.12 vs v.13) - API Manager 1.9.0 - WSO2 Documentation

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PropertyDescription
collector
  • true: specifies that the mediator instance is a response collection instance
  • false: specifies that the mediator instance is a cache serving instance

max MessageSize  

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.
maxSize Defines the maximum number of elements to be cached.

hashGenerator

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 here to 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.

...