Software AG Products 10.5 | Administering Integration Server | Configuring Ehcache on Integration Server | Making a Cache Searchable
 
Making a Cache Searchable
 
Defining Attributes
Integration Server uses the Ehcache search API to build indexes that you can use to look up data in a cache. You can search against predefined indexes of keys, values, or attributes extracted from values.
Some keys and values are directly searchable and can simply be added to the search index as attributes. However, you cannot search some keys or values directly. These require that you first extract the searchable attributes.
Once you make a cache searchable, you can use the pub.cache:search service to search the cache. The service returns the search result as an object array. The search results can include:
*Element keys
*Element values
*Predefined attribute values extracted from element values
*Aggregator results, which are results of aggregator functions such as Average, Count, Max, Min, and Sum.