@umbraco-cms/backoffice
    Preparing search index...

    Class UmbManagementApiItemDataCache<ItemDataModelType>

    A runtime cache for storing entity item data from the Management Api UmbManagementApiItemDataCache

    Type Parameters

    • ItemDataModelType
    Index
    • get serverEventsConnected(): boolean

      Whether server events are connected, which is the condition under which cached entries can be trusted, as server events are what invalidate them. The cache's invalidation manager owns this state for the lifetime of the app, so every consumer reads the same value, including one constructed after the connection changed. Without an invalidation manager it stays false, and consumers read from the server.

      Returns boolean

      • True if server events are connected, false otherwise

      UmbManagementApiItemDataCache

    • Checks if an entry exists in the cache

      Parameters

      • id: string

        The ID of the entry to check

      Returns boolean

      • True if the entry exists, false otherwise

      UmbManagementApiItemDataCache

    • Sets whether server events are connected, clearing the cache when they are not. Called by the cache's invalidation manager.

      Parameters

      • value: boolean

        True if server events are connected, false otherwise

      Returns void

      UmbManagementApiItemDataCache