Skip to content

How does Kademlia caching _work_? #4561

Closed Answered by mxinden
joshuef asked this question in Q&A
Sep 26, 2023 · 1 comments · 11 replies
Discussion options

You must be logged in to vote

Is caching automatic?

It has been in the past with Quorum::One, but is no longer. We have removed the Quorum mechanism from get_record. See #2712. The user needs to manually call Kademlia::put_record_to on a GetRecordOk::FinishedWithNoAdditionalRecord.

Note that the current docs are outdated, as they still reference the Quorum on the get_record code path. Would you mind creating a pull request updating the docs @joshuef?

FinishedWithNoAdditionalRecord {
/// If caching is enabled, these are the peers closest
/// _to the record key_ (not the local node) that were queried but
/// did not r…

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@joshuef
Comment options

@mxinden
Comment options

mxinden Sep 27, 2023
Collaborator

@joshuef
Comment options

@mxinden
Comment options

mxinden Oct 12, 2023
Collaborator

@joshuef
Comment options

Answer selected by joshuef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants