Cache Get (Aspire 2)

From wiki.searchtechnologies.com
Jump to: navigation, search

For Information on Aspire 3.1 Click Here

Cache Get (Aspire 2)
Factory Name  com.searchtechnologies.aspire:aspire-cache
subType  get
Inputs  AspireObjects from Jobs from processing pipelines
Outputs  AspireObjects
Feature only available with Aspire Enterprise

The cache get stage is used in conjunction with the Cache component/stage. Jobs run through the cache get stage use a service tracker to reference the Cache component and call processGet(Job) on the Cache to ensure consistent calculation of keys based on the document attached to the job.

If the processGet(Job) indicates that the cache was hit, this component will by default, terminate the job, meaning that no further stages are run.

Configuration

Element Type Default Description
cache String MANDATORY: The path (relative or absolute) of the Cache component.
terminate Boolean true If true, the job will be terminated if the Cache lookup produces a hit. In this case, no further stages will be run. To allow further processing after a hit, set this value to false.

Example configuration

  <component name="myCacheGet" subType="get" factoryName="aspire-cache">
    <cache>/TestCache/myCache</cache>
    <terminate>false</terminate>
  </component>