-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add cache control to IPNS (#473)
* feat: add cache control to IPNS Adds a `nocache` option when resolving IPNS records similar to when resolving DNSLink records. The record will be resolved from the local datastore and returned if it is valid (e.g. non-expired, correct key, etc). If the record is not present it will be fetched from the routing and stored in the local datastore if it is valid. - `nocache` will skip the datastore and use the routing. - `offline` only uses the datastore and skips the routing. * chore: add missing dep * chore: apply suggestions from code review Co-authored-by: Daniel Norman <[email protected]> --------- Co-authored-by: Daniel Norman <[email protected]>
- Loading branch information
1 parent
9ac5909
commit b00f682
Showing
4 changed files
with
79 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters