You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "<html><head></head><body><p>The CacheHandler is identical to other handlers ecxept that it\nis allowed to return a value synchronously. This is useful for\nfeatures like reducing microtask queueing when de-duping.</p>\n<p>A RequestManager may only have one CacheHandler, registered via\n<code>manager.useCache(CacheHandler)</code>.</p>\n</body></html>",
"description": "<html><head></head><body><p>Method to implement to handle requests. Receives the request\ncontext and a nextFn to call to pass-along the request to\nother handlers.</p>\n</body></html>",
"description": "<html><head></head><body><p>A service which an application may provide to the store via\nthe store's <code>lifetimes</code> property to configure the behavior\nof the CacheHandler.</p>\n<p>The default behavior for request lifetimes is to never expire\nunless manually refreshed via <code>cacheOptions.reload</code> or <code>cacheOptions.backgroundReload</code>.</p>\n<p>Implementing this service allows you to programatically define\nwhen a request should be considered expired.</p>\n</body></html>",
"description": "<html><head></head><body><p>Invoked to determine if the request may be fulfilled from cache\nif possible.</p>\n<p>Note, this is only invoked if the request has a cache-key.</p>\n<p>If no cache entry is found or the entry is hard expired,\nthe request will be fulfilled from the configured request handlers\nand the cache will be updated before returning the response.</p>\n</body></html>",
25
+
"itemtype": "method",
26
+
"name": "isHardExpired",
27
+
"access": "public",
28
+
"tagname": "",
29
+
"params": [
30
+
{
31
+
"name": "identifier",
32
+
"description": "",
33
+
"type": "StableDocumentIdentifier"
34
+
},
35
+
{
36
+
"name": "store",
37
+
"description": "",
38
+
"type": "Store"
39
+
}
40
+
],
41
+
"return": {
42
+
"description": "true if the request is considered hard expired",
"description": "<html><head></head><body><p>Invoked if <code>isHardExpired</code> is false to determine if the request\nshould be update behind the scenes if cache data is already available.</p>\n<p>Note, this is only invoked if the request has a cache-key.</p>\n<p>If true, the request will be fulfilled from cache while a backgrounded\nrequest is made to update the cache via the configured request handlers.</p>\n</body></html>",
52
+
"itemtype": "method",
53
+
"name": "isSoftExpired",
54
+
"access": "public",
55
+
"tagname": "",
56
+
"params": [
57
+
{
58
+
"name": "identifier",
59
+
"description": "",
60
+
"type": "StableDocumentIdentifier"
61
+
},
62
+
{
63
+
"name": "store",
64
+
"description": "",
65
+
"type": "Store"
66
+
}
67
+
],
68
+
"return": {
69
+
"description": "true if the request is considered soft expired",
"description": "<html><head></head><body><p>Invoked when a request will be sent to the configured request handlers.\nThis is invoked for both foreground and background requests.</p>\n<p>Note, this is invoked regardless of whether the request has a cache-key.</p>\n</body></html>",
"description": "<html><head></head><body><p>Invoked when a request has been fulfilled from the configured request handlers.\nThis is invoked for both foreground and background requests once the cache has\nbeen updated.</p>\n<p>Note, this is invoked regardless of whether the request has a cache-key.</p>\n</body></html>",
0 commit comments