# 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.

- ### Items

  - #### cachingStrategy

    Flags: RAM,runtime,AVals:2

    Multiplicity: [0,1]

  - #### scope

    Flags: RAM,runtime

    Multiplicity: [0,1]

    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]

    For how long do we consider cached data as usable?

  - #### defaultCacheUse

    Flags: RAM,runtime,AVals:4

    Multiplicity: [0,1]

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