We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c8636c commit 309053eCopy full SHA for 309053e
packages/client/src/index.ts
@@ -39,6 +39,20 @@
39
* await libp2p.peerRouting.findPeer(peerIdFromString('QmFoo'))
40
* ```
41
*
42
+ * ### Caching
43
+ *
44
+ * By default, the client caches responses in browser environments for a duration of 5 minutes.
45
46
+ * If caching is enabled, the client will cache responses for the duration of `cacheTTL` milliseconds.
47
+ * If `cacheTTL` is 0, caching is disabled:
48
49
+ * @example
50
51
+ * ```typescript
52
+ * // disable caching
53
+ * const client = createDelegatedRoutingV1HttpApiClient('https://example.org', { cacheTTL: 0 })
54
+ * ```
55
56
* ### Filtering with IPIP-484
57
58
* The client can be configured to pass filter options to the delegated routing server as defined in IPIP-484.
0 commit comments