Colibrio Reader Framework API - Cloud license
    Preparing search index...

    Wraps a ResourceProvider and manages a cache of fetched Resources. The ResourceCacheHost is used by ResourceCacheClients to retrieve resources from the backing resource provider.

    The ResourceCacheHost keeps Resource responses cached as long as any ResourceCacheClient keeps references to them.

    For example, if multiple ResourceCacheClients requests the same resource, only one request will be made to the backing ResourceProvider and its response will be reused.

    The uniqueness of a Resource is defined by its URL and its accept header.

    A Resource is evicted from the cache when all ResourceCacheClients that have requested that resource have been destroyed.

    interface IResourceCacheHost {
        destroy(): void;
        getBackingResourceProvider(): IResourceProvider;
    }

    Implemented by

    Methods

    • Destroys this cache host.

      Returns void