Search Results for

    Show / Hide Table of Contents

    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 Source

    IsActive

    True if cache is active. You can cganhe this by calling Start() and Stop()

    Declaration
    bool IsActive { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Size

    Number of entities in the cache

    Declaration
    int Size { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    Clear()

    Clears the cache. This might have no effect on pure in-memory IModel implementations.

    Declaration
    void Clear()
    | Improve this Doc View Source

    Start()

    Starts the cache if it is not active. This might have no effect on pure in-memory IModel implementations.

    Declaration
    void Start()
    | Improve this Doc View Source

    Stop()

    Stops the cache but keeps entities already cached. This might have no effect on pure in-memory IModel implementations.

    Declaration
    void Stop()
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 xbim