cache

This configuration is optional when using the plugin Cadenza.

  • Documentation

  • YAML Format

  • XML Format

Fill relevant inputs (blue boxes) and click the blue bars on the left to copy XML configuration snippets.
<cacheConfiguration
>
required
<cache
>
optionalmax. unbounded
<name
>
required
string
</name>
<restriction
Choice: Choose only ONE of the following
<maxWeight
>
optional

Maximum weight of cache.

xs:string
</maxWeight>
<maxNumberOfEntries
>
optional
long

Maximum number of entries in cache.

</maxNumberOfEntries>
Choice End
>
optional
</restriction>
<expiration
<afterWrite
>
optional
duration

ISO 8601 Duration Format

Format: P[n]Y[n]M[n]DT[n]H[n]M[n]S

  • P is the duration designator (period) placed at the start of the duration representation
  • Y is the number of years
  • M is the number of months
  • D is the number of days
  • T is the time designator that precedes the time components
  • H is the number of hours
  • M is the number of minutes
  • S is the number of seconds

Examples:

  • PT5M - 5 minutes
  • PT1H30M - 1 hour and 30 minutes
  • P1D - 1 day
  • P1Y2M3DT4H5M6S - 1 year, 2 months, 3 days, 4 hours, 5 minutes, and 6 seconds

Expunge entries when the given duration has elapsed since the entry was last written.

</afterWrite>
<afterAccess
>
optional
duration

ISO 8601 Duration Format

Format: P[n]Y[n]M[n]DT[n]H[n]M[n]S

  • P is the duration designator (period) placed at the start of the duration representation
  • Y is the number of years
  • M is the number of months
  • D is the number of days
  • T is the time designator that precedes the time components
  • H is the number of hours
  • M is the number of minutes
  • S is the number of seconds

Examples:

  • PT5M - 5 minutes
  • PT1H30M - 1 hour and 30 minutes
  • P1D - 1 day
  • P1Y2M3DT4H5M6S - 1 year, 2 months, 3 days, 4 hours, 5 minutes, and 6 seconds

Expunge entries when the given duration has elapsed since the entry was last accessed.

</afterAccess>
>
optional
</expiration>
</cache>
</cacheConfiguration>
This is a generated sample file with fake data and all the possible options shown, refer to the Documentation tab for what combinations are valid and what is required or not.
cadenzaconfig:
  settings:
    cache:
      cache:
      - name: "text"
        restriction:
          maxWeight: "text"
          maxNumberOfEntries: 25
        expiration:
          afterWrite: "P2DT3M"
          afterAccess: "P2DT3M"
      - name: "text"
        restriction:
          maxWeight: "text"
          maxNumberOfEntries: 25
        expiration:
          afterWrite: "P2DT3M"
          afterAccess: "P2DT3M"

Filename: cache-config.xml

This is a generated sample file with fake data and all the possible options shown, refer to the Documentation tab for what combinations are valid and what is required or not.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cacheConfiguration>
  <cache>
    <name>text</name>
    <restriction>
      <maxWeight>text</maxWeight>
      <maxNumberOfEntries>25</maxNumberOfEntries>
    </restriction>
    <expiration>
      <afterWrite>P2DT3M</afterWrite>
      <afterAccess>P2DT3M</afterAccess>
    </expiration>
  </cache>
  <cache>
    <name>text</name>
    <restriction>
      <maxWeight>text</maxWeight>
      <maxNumberOfEntries>25</maxNumberOfEntries>
    </restriction>
    <expiration>
      <afterWrite>P2DT3M</afterWrite>
      <afterAccess>P2DT3M</afterAccess>
    </expiration>
  </cache>
</cacheConfiguration>