# ShadowCachingPolicyType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

Supertype: CachingPolicyType
Definition of a shadow caching policy.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
cachingStrategy | property CachingStrategyType | [0,1] |
scope | container ShadowCachingScopeType | [0,1] | Scope of the caching.
timeToLive | property duration | [0,1] | For how long do we consider cached data as usable?
defaultCacheUse | property CachedShadowsUseType | [0,1] | How should be the cache used by default, e.
retrievalTimestampMaintenance | property boolean | [0,1] | Should we maintain retrieval timestamp in shadows when the shadow is retrieved from the resource? Can be turned off to improve the performance in cases when we need the cached data but don't need the timestamp (e.

- ### Items

  - #### cachingStrategy

    Flags: RAM,runtime,AVals:2

    Multiplicity: [0,1]

    Display order:

  - #### scope

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Scope of the caching. The default is to cache mapped items, activation, and "protected" flag. Any exceptions can be marked by "cached" property of individual attributes and associations.

  - #### timeToLive

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    For how long do we consider cached data as usable?

  - #### defaultCacheUse

    Flags: RAM,runtime,AVals:4

    Multiplicity: [0,1]

    Display order:

    How should be the cache used by default, e.g., if no caching behavior is specified in model execution options?

  - #### retrievalTimestampMaintenance

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Should we maintain retrieval timestamp in shadows when the shadow is retrieved from the resource? Can be turned off to improve the performance in cases when we need the cached data but don't need the timestamp (e.g., when using data only for reporting purposes).