IMetabaseManager.BuildMetadataCache

Syntax

BuildMetadataCache;

Description

The BuildMetadataCache method updates metadata cache of all repositories.

Comments

When the method is executed, cache is updated for the repositories, for which there are descriptions are available in the Definitions collection. Before cache update it is recommended to call the CleanMetadataCache method.

Example

Add links to the Metabase system assembly.

Sub RebuildAll;
Var
    MbMan: IMetabaseManager;
Begin
    MbMan := MetabaseManagerFactory.Active;
    Debug.WriteLine("Cleaning cache");
    MbMan.CleanMetadataCache;
    Debug.WriteLine("Building cache");
    MbMan.BuildMetadataCache;
    Debug.WriteLine("---Done---");
End Sub RebuildAll;

After executing the method, metadata cache of all repositories, for which descriptions were created, are reset and updated.

See also:

IMetabaseManager