IInMemManager.UseInMem

Syntax

UseInMem: Boolean;

UseInMem: Boolean;

Description

The UseInMem property returns whether the In-Memory cache is used on working with repository cubes.

Comments

By default the In-Memory cache is used in repository. Cache is managed via registry/the Settings.xml file levels must be set up.

Example

Add a link to the Cubes system assembly.

Sub UserProc;
Var
    InMem: IInMemManager;
Begin
    InMem := 
New InMemManager.Create;
    Debug.WriteLine(
"The In-Memory cache is used: " + InMem.UseInMem.ToString);
    
If InMem.UseInMem Then
        Debug.WriteLine(
"The size of displayed memory in use: " + InMem.SharedMemory.ToString + " byte.");
        Debug.WriteLine(
"Disk space: " + InMem.StoredMemory.ToString + " byte.");
    
End If;
End Sub UserProc;

Imports Prognoz.Platform.Interop.Cubes;

Public Shared Sub Main(Params: StartParams);
Var
    InMem: InMemManager = 
New InMemManagerClass();
Begin
    System.Diagnostics.Debug.WriteLine(
"The In-Memory cache is in use: " + InMem.UseInMem.ToString());
    
If InMem.UseInMem Then
        System.Diagnostics.Debug.WriteLine(
"The suze of displayed memory in use: " + InMem.SharedMemory.ToString() + " byte.");
        System.Diagnostics.Debug.WriteLine(
"Disk space: " + InMem.StoredMemory.ToString() + " bytes.");
    
End If;
End Sub;

On executing the example the development environment console displays whether the In-Memory cache is in use and the size of displayed memory and disk volume in use, if the cache is used.

See also:

IInMemManager