AngularTS
    Preparing search index...

    Class CachedRestBackend

    Composes a network backend with an async cache store.

    GET requests use the configured RestCacheStrategy. Write requests are sent to the network backend first, then matching cached collection and entity entries are invalidated after successful writes.

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Execute a cached REST request.

      GET requests are cacheable. Non-GET requests bypass the cache for the write itself and invalidate matching cached reads only after the write succeeds.

      Type Parameters

      • T

      Parameters

      Returns Promise<RestResponse<T>>