Interface CachedRestBackendOptions


@JsType(isNative=true, name="ng.CachedRestBackendOptions", namespace="<global>") public interface CachedRestBackendOptions
Configuration for CachedRestBackend.
  • Method Details

    • create

      @JsOverlay static CachedRestBackendOptions create()
    • getCache

      @JsProperty RestCacheStore getCache()
      Async cache store, such as IndexedDB, Cache API, or memory.
    • getNetwork

      @JsProperty RestBackend getNetwork()
      Backend used for authoritative network responses and writes.
    • getOnRevalidate

      @JsProperty CachedRestBackendOptions.OnRevalidateCallback getOnRevalidate()
      Notified after a stale-while-revalidate refresh succeeds.
    • getPolicy

      @JsProperty RestCachePolicy getPolicy()
      Runtime policy used to choose the read strategy for each cacheable request.
    • getStrategy

      @JsProperty String getStrategy()
      Default read strategy used for cacheable GET requests.
    • setCache

      @JsProperty void setCache(RestCacheStore cache)
      Async cache store, such as IndexedDB, Cache API, or memory.
    • setNetwork

      @JsProperty void setNetwork(RestBackend network)
      Backend used for authoritative network responses and writes.
    • setOnRevalidate

      @JsProperty void setOnRevalidate(CachedRestBackendOptions.OnRevalidateCallback onRevalidate)
      Notified after a stale-while-revalidate refresh succeeds.
    • setPolicy

      @JsProperty void setPolicy(RestCachePolicy policy)
      Runtime policy used to choose the read strategy for each cacheable request.
    • setStrategy

      @JsProperty void setStrategy(String strategy)
      Default read strategy used for cacheable GET requests.