UseInMem: Boolean;
The UseInMem property returns whether In-Memory cache is used when working with repository cube data.
In-Memory cache is used in the repository by default. Cache is managed by means of the registry/settings.xml file.
Add a link to the Cubes system assembly.
Sub UserProc;
Var
InMem: IInMemManager;
Begin
InMem := New InMemManager.Create;
Debug.WriteLine("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;
After executing the example the development environment console displays whether In-Memory cache is used and the size of displayed memory and disk volume in use, if cache is used.
See also: