remote-policy-cache

Purpose

Remote policy cache settings.

Note:

In versions previous to MCS 3.5.1 several elements containing remote policy cache values were defined in the remote-policies section of the mcs-config.xml file. There is now a single cache and these elements are now obsolete.

Contained by

Attributes

Attribute Description Type Default Options Use
allowRetainDuringRetry Whether or not invalid entries can be retained and used during retry operations xs:boolean true    optional 
allowRetryFailedRetrieval Whether or not retry is allowed when a retrieval from a remote repository fails xs:boolean true    optional 
cachePolicies Whether or not the policy value should be cached. xs:boolean true    optional 
defaultRetainDuringRetry Whether or not the cached value should be used during the retry period xs:boolean true    optional 
defaultRetryFailedRetrieval Whether or not to retry a failed attempt to retrieve the entry. If the value is 'false' the values of defaultRetryInterval, defaultretryMaxCount and defaultRetainDuringRetry are ignored. xs:boolean true    optional 
defaultRetryInterval The period in seconds between attempts to refresh the item. A value of 0 indicates that MCS should attempt to load the value from the remote server. xs:int 600    optional 
defaultRetryMaxCount The maximum number of times that a failed refresh should be attempted xs:int   optional 
defaultTimeToLive The default period in seconds that the cached entry is valid. xs:int 3600    optional 
maxCacheSize The maximum number of entries that are allowed in the cache. xs:int 1000    optional 
maxRetryMaxCount The maximum number of retries that may be made xs:int 10    optional 
maxTimeToLive The maximum time in seconds that an entry remains valid. A value of 0 indicates that there is no maximum limit. xs:int   optional 
minRetryInterval The minimum value for the retry interval on an individual entry in the cache. A value of 0 indicates that there is no minimum limit. xs:int   optional 

Example

<remote-policy-cache
  cachePolicies="true"
  defaultTimeToLive="3600"
  defaultRetryFailedRetrieval="true"
  defaultRetryInterval="600"
  defaultRetryMaxCount="5"
  defaultRetainDuringRetry="true"
  maxCacheSize="1000"
  maxTimeToLive="0"
  allowRetryFailedRetrieval="true"
  minRetryInterval="0"
  maxRetryMaxCount="10"
  allowRetainDuringRetry="true"
  usePersistentCache="false"
  minimumTimeToLiveForSharing="600">

Related topics