Package org.angular.ts.ng
Interface CachedRestBackendOptions
@JsType(isNative=true,
name="ng.CachedRestBackendOptions",
namespace="<global>")
public interface CachedRestBackendOptions
Configuration for
CachedRestBackend.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTypeScript callback contract for this property. -
Method Summary
Modifier and TypeMethodDescriptionstatic CachedRestBackendOptionscreate()getCache()Async cache store, such as IndexedDB, Cache API, or memory.Backend used for authoritative network responses and writes.Notified after a stale-while-revalidate refresh succeeds.Runtime policy used to choose the read strategy for each cacheable request.Default read strategy used for cacheable GET requests.voidsetCache(RestCacheStore cache) Async cache store, such as IndexedDB, Cache API, or memory.voidsetNetwork(RestBackend network) Backend used for authoritative network responses and writes.voidsetOnRevalidate(CachedRestBackendOptions.OnRevalidateCallback onRevalidate) Notified after a stale-while-revalidate refresh succeeds.voidsetPolicy(RestCachePolicy policy) Runtime policy used to choose the read strategy for each cacheable request.voidsetStrategy(String strategy) Default read strategy used for cacheable GET requests.
-
Method Details
-
create
-
getCache
Async cache store, such as IndexedDB, Cache API, or memory. -
getNetwork
Backend used for authoritative network responses and writes. -
getOnRevalidate
Notified after a stale-while-revalidate refresh succeeds. -
getPolicy
Runtime policy used to choose the read strategy for each cacheable request. -
getStrategy
Default read strategy used for cacheable GET requests. -
setCache
Async cache store, such as IndexedDB, Cache API, or memory. -
setNetwork
Backend used for authoritative network responses and writes. -
setOnRevalidate
Notified after a stale-while-revalidate refresh succeeds. -
setPolicy
Runtime policy used to choose the read strategy for each cacheable request. -
setStrategy
Default read strategy used for cacheable GET requests.
-