CMISRefreshClientCache

Refreshes the client-side cache.

Member of namespace

CMISClient

Syntax

bool CMISRefreshClientCache(string milliseconds)

Parameters

milliseconds
Type: string

Parameters

milliseconds : Refreshes the object local cache if it is older than the specified number of milliseconds. A value of 0 refreshes immediately. A value of -1 disables this refresh feature and the CMIS interface manages the cache itself. By default, this refresh is disabled. Smart parameters are supported.

Returns

Always True.

Level

All levels.

Details

CMIS client-side caching first checks the session cache, if an object exists in the client cache. If the required object is found, that object is used without contacting the repository. It is possible that it might be a stale object.

This action refreshes the client-side cache, if it is older than the time specified in the parameter. The value of 0 refreshes the cache immediately. This action affects all subsequent CMIS actions, refreshing each object as they are used. Call this action with a value of -1 to disable this automatic refresh.

Typically this action does not need to be called. It can be called when a specific application requires a cache refresh. If this action is not called, the CMIS interface manages the cache as appropriate.

Note: Objects that are created on the CMIS server might not be immediately accessible by the client. For example, the indexing service on your CMIS server might run on a configured interval, so a new object might not be available until the indexing service completes. This refresh setting does not affect components on the CMIS server, such as the indexing service interval. If you have trouble accessing newly created objects, check the settings and documentation of your CMIS server to determine when objects become available.
Example:
CMISRefreshClientCache("1000")            

Refreshes the client local cache if it is older than 1 second.