UseInMem: Boolean;
The UseInMem property returns whether the In-Memory cache is used on working with repository cubes.
By default the In-Memory cache is used in repository. Cache is managed via 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("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;
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: