IInMemManager.ClearCachedData

Syntax

ClearCachedData(CubeObject: IMetabaseObject);

Parameters

CubeObject. The cube, for which cached data should be cleared.

Description

The ClearCachedData method removes all data linked to the specified cube from the cache.

Comments

On executing the method, data of all display versions and for all sets of cube parameters are deleted.

Example

Executing the example requires that the repository contains a cube with the STD_CUBE identifier. The repository uses In-Memory caching mechanism.

Add links to the Cubes and Metabase system assemblies.

Sub UserProc;
Var
    Mb: IMetabase;
    Cube: IMetabaseObject;
    InMem: IInMemManager;
Begin
    Mb := MetabaseClass.Active;
    Cube := Mb.ItemById(
"STD_CUBE").Bind;
    
// Manager for working with In-Memory cache
    InMem := New InMemManager.Create;
    
// Delete cached data
    InMem.ClearCachedData(Cube);
End Sub UserProc;

After executing the example all cached data is deleted from cache for the specified cube.

See also:

IInMemManager