Home


Inactivity

An inactivity sub-element specifies a time-to-live (TTL) value for the cache entry based on the last time that the cache entry was accessed. In Example | -5, the inactivity value, given in seconds, indicates the amount of time to keep the cache entry in the cache after the last cache hit. Note that if a timeout value is less than the inactivity value, then the inactivity value has no meaning and the cache entry is always invalidated before the inactivity time is reached.

Example 3-5 Using inactivity to invalidate

<cache-id>
  <component id="storeId" type="parameter">
    <required>true</required>
  </component>
  <component id="DC_userId" type="attribute">
    <required>true</required>
  </component>
  <inactivity>240</inactivity>
  <timeout>3600</timeout>
</cache-id>

+

Search Tips   |   Advanced Search