Interface IEntityCache
Some implementations of IModel might use optimized data handling where entity data is loaded on the fly from database, file or other source. For some scenarios it is usefull to keep entities alive in the cache so they don't get disposed and every entity only has one instance.
Inherited Members
System.IDisposable.Dispose()
Namespace: Xbim.Common
Assembly: Xbim.Common.dll
Syntax
public interface IEntityCache : IDisposable
Properties
| Improve this Doc View SourceIsActive
True if cache is active. You can cganhe this by calling Start() and Stop()
Declaration
bool IsActive { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Size
Number of entities in the cache
Declaration
int Size { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceClear()
Clears the cache. This might have no effect on pure in-memory IModel implementations.
Declaration
void Clear()
Start()
Starts the cache if it is not active. This might have no effect on pure in-memory IModel implementations.
Declaration
void Start()
Stop()
Stops the cache but keeps entities already cached. This might have no effect on pure in-memory IModel implementations.
Declaration
void Stop()